Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Calculates the sales amounts for multiple on-account transactions and returns a map of the transaction ID's to sales amounts in a container. ProjOnAccTrans is used to calculate the amounts.
Syntax
server public static container sumAmountDisplayCache(
container _conprojOnAccTrans,
container _conprojOnAccTransSalesAmount,
TransDate _ledgerFromDate,
TransDate _ledgerToDate)
Run On
Server
Parameters
- _conprojOnAccTrans
Type: container
A packed set of transaction IDs.
- _conprojOnAccTransSalesAmount
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
If _conProjOnAccTrans contains transaction IDs that are already in _conProjOnAccTransSalesAmount, the sales amount will be recalculated and updated in the map.