Share via


RetailPricingEngine::setRetailDiscountsOnOrder Method [AX 2012]

Deprecated.

For given sales order, update the retail discount amounts on all the lines.

Syntax

client server public static void setRetailDiscountsOnOrder(SalesTable _salesTable, [SalesLine _newSalesLine])

Run On

Called

Parameters

  • _newSalesLine
    Type: SalesLine Table
    Optional. Use this if you need to consider discounts with an as-yet-unwritten sales line (or line with unwritten changes).

Remarks

This may call update() on multiple sales lines on the order.

But it won't call insert() on the _newSalesLine passed in.

See Also

Reference

RetailPricingEngine Class