Compartir a través de


ProjRevenueTrans.salesAmount Method

Returns the sales ledger amount for this revenue transaction.

Syntax

public SalesAmount salesAmount(
    ProjRevenueTrans projRevenueTrans, 
    TransDate ledgerFromDate, 
    TransDate ledgerToDate)

Run On

Called

Parameters

  • projRevenueTrans
    Type: ProjRevenueTrans Table
    The revenue 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 this transaction.

Examples

This example returns the sales amount for a given transaction.

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

See Also

Reference

ProjRevenueTrans Table