Hi,
Calculate Transaction To Accounting Currency
CurrencyExchangeHelper currencyExchangeHelper;CurrencyCode transCurrency = 'EUR';
AmountCur amountCur = 5226.52;
AmountMst amountMST;
currencyExchangeHelper = CurrencyExchangeHelper::newExchangeDate(Ledger::current(), systemDateGet());
amountMST = currencyExchangeHelper.calculateTransactionToAccounting(transCurrency, amountCur ,true);
info(strFmt('%1',amountMST));
Comments
Post a Comment