RetailPricingEngine::calculateDiscounts Method [AX 2012]


For given sales order, compute the retail discounts across all the lines.

Returns the result in a mapping between each line's InvenTransId and a unit discount amount for the line.

client server public static Map calculateDiscounts(SalesTable _salesTable, [SalesLine _newSalesLine])

Run On



Type: SalesTable Table
Sales order to calculate discounts for.
Type: SalesLine Table
Optional. Use this if you need to consider discounts with an as-yet-unwritten sales line.

Return Value

Type: Map Class
Mapping between InventTransId for sales lines and unit discounts amounts per line.