ProjOnAccTrans.salesAmount Method
Returns the total sales amount for an on-account transaction.
Syntax
public SalesAmount salesAmount(
ProjOnAccTrans projOnAccTrans,
TransDate ledgerFromDate,
TransDate ledgerToDate)
Run On
Called
Parameters
- projOnAccTrans
Type: ProjOnAccTrans Table
The on-account transaction for which to calculate the sales amount.
- 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: SalesAmount Extended Data Type
The sales amount for the transaction.
Remarks
This is the total revenue for this transaction including both invoiced and accrued revenue as calculated by the ProjStatement.E100_Total_Revenue method. The amount returned is in the default currency.
Examples
This example returns the sales amount for a given transaction.
display SalesAmount salesAmount(ProjOnAccTrans _projOnAccTrans)
{
TransDate ledgerFromDate;
TransDate ledgerToDate;
ledgerFromDate = dateNull();
ledgerToDate = dateMax();
return _projOnAccTrans.salesAmount(_projOnAccTrans,ledgerFromDate,ledgerToDate);
}