ProjEmplTrans::salesAmountDisplayCache Method
Calculates the sales amounts for multiple transactions and returns a map of the transaction IDs to sales amounts in a container.
Syntax
server public static container salesAmountDisplayCache(
container _conProjEmplTrans,
container _conProjEmplTransSalesAmount,
TransDate _ledgerFromDate,
TransDate _ledgerToDate)
Run On
Server
Parameters
- _conProjEmplTrans
Type: container
A packed set of transaction IDs.
- _conProjEmplTransSalesAmount
Type: container
A packed map of String to Real. It can be empty or can already contain elements.
- _ledgerFromDate
Type: TransDate Extended Data Type
The begin date of ledger postings to include in the calculation.
- _ledgerToDate
Type: TransDate Extended Data Type
The end date of ledger postings to include in the calculation.
Return Value
Type: container
A packed map of transaction IDs to sales amounts.
Remarks
The ProjEmplTrans.salesAmount method is used to calculate the amounts.
If _conProjEmplTrans contains transaction IDs that are already in _conProjEmplTransSalesAmount, the sales amount will be recalculated and updated in the map.
Set ledgerFromDate with the dateNull method and ledgerToDate with the dateMax method to include all postings for the transactions in the sales calculation.