← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 641314] Re: [account] Regression: invoice residual amount not computed if payments are in domestic currency (5.0)

 

** Changed in: openobject-addons
       Status: New => Confirmed

-- 
[account] Regression: invoice residual amount not computed if payments are in domestic currency (5.0)
https://bugs.launchpad.net/bugs/641314
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Addons Modules: Confirmed

Bug description:
Hi!
Try to reconcile an invoice which is in the company's currency and the payment is also in the company's currency. The invoice will be done but the residual amount won't change.
This is a regression of stephane@xxxxxxxxxxx-20100825141615-awr5i2by021ttx5a that is a fix of bug #511104.

Because the bank statement creates accounting entries in domestic currency with amount_currency=False
in account_bank_statement.button_confirm():
                amount_currency = False
                currency_id = False
                if st.currency.id <> company_currency_id:
                    amount_currency = move.amount
but in invoice._amount_residual():
                    credit += lines.credit > 0 and abs(lines.amount_currency) or  0.00