summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-05-05 18:12:46 +0200
committerDenis Ledoux <dle@odoo.com>2015-05-06 18:29:47 +0200
commitdd47b6f5bccfb43ee6fabb81effd16c940a020e0 (patch)
tree0afab4ff93db507ba9461e3a9edd922f038f0ac3 /addons/analytic_user_function
parent9335fed9fecdf411c4e266be58302a5021e14106 (diff)
[FIX] account: Exchanges rates gain/loss during reconciliations
When processing the reconciliation of a bank statement within the company currency with an invoice in a foreign currency, avoid to recompute the bank statement debit / credit within the currency rate at the time of the invoice when the `amount_currency` of the bank statement line and the `amount_currency` of the invoice move line are the same (while having the invoice move line and the bank statement move line in the same currency, and having the bank statement currency and the company currency the same), to prevent gain/loss exchanges during currencies conversion. Computing the amount of the statement line within the currency of the invoice is useful to compute the difference of amount paid within the company currency when a change of currency rates occured between the invoice date and the date of the payment. Nevertheless, recomputing the amount in the currency of the company is useless when the payment currency and the company currency are the same, and the amount of the invoice and the statement in the foreign currency are identical, since the amount is already computed, within the debit/credit field of the invoice move line. Besides, this prevents gain/loss changes. opw-631748 opw-632133 opw-631895 closes #6559
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions