Interested in creating and selling training? You pick the price, 50/50 revenue share, and you own the content. Find out more at
I need to understand how exchange rate in SalesInvoice report is passed. I see that the value is provided by cachedExchRate however I dont see any declaration of this variable inside DP class. The same situation is with other values (please see screenshot attached). It would be nice if you could explain me how these cached values are passed.
It's declared and assinged in the parent class, SalesInvoiceDPBase.
The key method is SalesInvoiceDPBase.getAccountingExchangeRate():
protected CurrencyExchangeRate getAccountingExchangeRate(CustInvoiceJour _custInvoiceJour)
CurrencyExchangeRate currentTransactionCurrencyExchangeRate = ExchangeRateHelper::getCrossRate_Static(
return CurrencyEuroDenomination::displayStoredExchangeRate_Static(currentTransactionCurrencyExchangeRate, ExchangeRateDisplayFactor::One);