CustVendPaymReconciliationImport.convertAmountTransCurToAmountPaymCur Method [AX 2012]

Converts the specified amount from the currency of the open transaction to the currency of the payment.

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 payment currency.
_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. The default is 0; optional.
_exchRate
Type: ExchRate Extended Data Type
The exchange rate to use. The default is 0; optional.

Return Value

Type: AmountCur Extended Data Type
The amount converted to payment currency.

Community Additions

ADD
Show: