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 transactions and returns a map of the transaction IDs to sales amounts in a container.
Syntax
server public static container sumAmountDisplayCache(
container _conProjRevenueTrans,
container _conProjRevenueTransSalesAmount,
TransDate _ledgerFromDate,
TransDate _ledgerToDate)
Run On
Server
Parameters
- _conProjRevenueTrans
Type: container
A packed set of transaction IDs.
- _conProjRevenueTransSalesAmount
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 (container) of transaction IDs to sales amounts.
Remarks
The ProjRevenueTrans table is used to calculate the amounts.
If _conProjRevenueTrans contains transaction IDs that are already in _conProjRevenueTransSalesAmount, the sales amount will be recalculated and updated in the map.
Set _ledgerFromDate to the dateNull method and _ledgerToDate to the dateMax method to include all postings for the transactions in the sales calculation.