Share via


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.

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.

See Also

Reference

ProjEmplTrans Table