Share via


ProjEmplTrans.salesAmount Method

Returns the sales ledger amount for a transaction.

Syntax

public SalesAmount salesAmount(
    ProjEmplTrans projEmplTrans, 
    TransDate ledgerFromDate, 
    TransDate ledgerToDate)

Run On

Called

Parameters

  • projEmplTrans
    Type: ProjEmplTrans Table
    The transaction for which to calculate the sales amount.

Return Value

Type: SalesAmount Extended Data Type
The sales amount for the transaction.

Remarks

The sales ledger amount is the total revenue for the transaction including both invoiced and accrued revenue as calculated by the projStatement.A100_Total_Revenue method.

The amount returned is in the default currency.

Set ledgerFromDate to the dateNull method and ledgerToDate to the dateMax method to include all postings for the transaction.

Examples

This example returns the sales amount for a given transaction.

display SalesAmount salesAmount(ProjEmplTrans _projEmplTrans) 
{ 
    TransDate    ledgerFromDate; 
    TransDate    ledgerToDate; 
 
    ledgerFromDate  = dateNull(); 
    ledgerToDate    = dateMax(); 
 
    return _projEmplTrans.salesAmount(_projEmplTrans,ledgerFromDate,ledgerToDate); 
}

See Also

Reference

ProjEmplTrans Table