Syntax
ExchangeRateComputation
determineExchangeRates
(
final SubTransaction
txn
,
Authorisation
authorisation
)
Parameters
-
txn –
the SubTransaction to determine the exchange rates for
-
authorisation –
the authorisation subtransaction that can optionally be used to copy the exchange rates from. If the authorisation is not provided it must be loaded on demand by the implementation.
Returns
the computed exchange rates
Usage
Calculates the exchange rates that are to be considered for the specified transaction. The rates are stored into the database and available via
SubTransaction#getExchangeRatePayee()
and
SubTransaction#getExchangeRatePayer()
.
the computed exchange rates