CustVendCheque.convertAmountTransCurToAmountPaymCur Method [AX 2012]
Converts the specified amount from the currency of the open transaction to the currency of the payment.
Syntax
protected AmountCur convertAmountTransCurToAmountPaymCur(
Amount _amountTransCur,
CompanyId _transCompany,
CurrencyCode _transCurrencyCode,
CompanyId _paymCompany,
CurrencyCode _paymCurrencyCode,
[TransDate _exchRateDate,
ExchRate _crossRate,
ExchRate _exchRate])
Run On
Called
Parameters
- _amountTransCur
Type: Amount Extended Data Type
The amount in transaction currency to convert.
- _transCompany
Type: CompanyId Extended Data Type
The company where the transaction exists.
- _transCurrencyCode
Type: CurrencyCode Extended Data Type
The currency the transaction uses.
- _paymCompany
Type: CompanyId Extended Data Type
The company where the payment exists.
- _paymCurrencyCode
Type: CurrencyCode Extended Data Type
The currency the payment uses.
- _exchRateDate
Type: TransDate Extended Data Type
The date to use for exchange rate calculations; optional.
- _crossRate
Type: ExchRate Extended Data Type
The cross rate to use; default is 0; optional.
- _exchRate
Type: ExchRate Extended Data Type
The exchange rate to use; default is 0; optional.
Return Value
Type: AmountCur Extended Data Type
The amount converted to payment currency.