RetailPricingEngine::calculateDiscountsFromSalesLine Method [AX 2012]

Computes the discount for sales line.

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

client server public static SalesLineDisc calculateDiscountsFromSalesLine(RetailChannelTable _currentChannel, [SalesLine _newSalesLine])

Run On

Called

Parameters

_currentChannel
Type: RetailChannelTable Table
Channel to calculate discounts for.
_newSalesLine
Type: SalesLine Table
Optional. Use this if you need to consider discounts with an as-yet-unwritten sales line.

Return Value

Type: SalesLineDisc Extended Data Type
Mapping between InventTransId for sales lines and unit discounts amounts per line.
Show: