Balancing payment and credit amounts with real world transactions is virtually impossible when exchange rates are involved as the rate is constantly changing. As a result often the rate is not set in stone until the transaction is made by the accounting system.This means the exchange rate could be edited in the invoice until the invoice/voucher is marked as "Paid". The rate will need to be updated by a user or possibly an external system when awaiting payment, as part of paying the voucher/invoice.
API for getting ROE(Rate of exchange) is added in scope of MODFIN-111 - Exchange rate API(Closed)
If exchange rate is edited after invoice approval and there is enough money in fund than voucher and voucher lines totals need to be recalculated and updated.
- logic updated
- API test updated
- Unit test updated