SpecTransManager::getTotalSettleAmountForSpecReference Method [AX 2012]
Calculates the total of the associated records in the SpecTrans table in the specified currency.
Syntax
server public static AmountCur getTotalSettleAmountForSpecReference(
CompanyId _specCompany,
TableId _specTableId,
RefRecId _specRecId,
CurrencyCode _specCurrency,
CompanyId _specCurrencyCompany,
TransDate _exchRateDate,
[ExchRate _exchRate])
Run On
Server
Parameters
- _specCompany
Type: CompanyId Extended Data Type
The reference company of the group of SpecTrans records for which to calculate the total amount to settle.
- _specTableId
Type: TableId Extended Data Type
The reference table ID of the group of SpecTrans records for which to calculate the total amount to settle.
- _specRecId
Type: RefRecId Extended Data Type
The reference record ID of the group of SpecTrans records for which to calculate the total amount to settle.
- _specCurrency
Type: CurrencyCode Extended Data Type
The currency of the referenced transaction that is used when it converts the total.
- _specCurrencyCompany
Type: CompanyId Extended Data Type
- _exchRateDate
Type: TransDate Extended Data Type
The date used to find exchange rates.
- _exchRate
Type: ExchRate Extended Data Type
The exchange rate used to convert the total from the specified currency to the monetary standard (MST) currency; optional.
Return Value
Type: AmountCur Extended Data Type
The total amount of associated records in the SpecTrans table.
Remarks
This method replaces the specAmount method on the Specification_OffsetVoucher class.