diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-12-03 17:01:41 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-12-08 13:36:17 +0100 |
| commit | a98d1f51d884cb71be30448fd715da153907ef76 (patch) | |
| tree | 381a3e5ee1ec7844bd01f1aecbd98a580eab066d /addons/auth_oauth/controllers | |
| parent | 52fa7814d969e11ab11639ec9aa007db279b0126 (diff) | |
[FIX] account: do not convert amount
In a multi-currency environment, the difference amount computed will be
affected by the exchange rate change. In other words, if the exchange
rate changes between the invoice date and the payment date, this
difference will be reflected in the difference amount. For example:
- Company currency is USD, invoice currency is EUR
- At invoice date, 1 USD = 1 EUR
- At payment date, 1 USD = 0.9 EUR
- An invoice of 1000 EUR is created
- A payment of 1000 EUR is done
Without this fix, a payment difference of -100 EUR is shown. The reason
is that at invoice date, we expect a payment corresponding to 1000 USD,
which is equal to 900 EUR at payment date.
This fix doesn't do any currency conversion if the payment currency is
the same than the invoice currency, to prevent any exchange rate
difference shown. Indeed, if an invoice is 1000 EUR, a user expects that
a payment of 1000 EUR will not show any payment difference.
Note that this doesn't fix the payment difference amount when an invoice
in a given currency is paid in another currency.
opw-658177
Diffstat (limited to 'addons/auth_oauth/controllers')
0 files changed, 0 insertions, 0 deletions
