SalesPurchLine::priceDisc_LineDiscCache Method
Instantiates the PriceDisc_LineDisc class.
Syntax
server public static PriceDisc_LineDisc priceDisc_LineDiscCache(
SalesPurchLine _salesPurchLine,
[InventDim _inventDim,
boolean _doCallPriceDate])
Run On
Server
Parameters
- _salesPurchLine
Type: SalesPurchLine Map
An instance of the SalesPurchLine table map.
- _inventDim
Type: InventDim Table
A buffer of the InventDim table.
- _doCallPriceDate
Type: boolean
A Boolean value that specifies whether to use the price date or the system date for the discount calculation.
Return Value
Type: PriceDisc_LineDisc Class
An instance of the PriceDisc_LineDisc class.
Remarks
The instantiated PriceDisc_LineDisc class is stored in the global cache and first thing this method tries to retrieve it from there.After instantiation or retrieval is the PriceDisc_LineDisc class parameters updated and it is checked if the discount values still are valid.If the price discount determination values are outdated a recalculation is executed.