← 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)

 

*** This bug is a duplicate of bug 666154 ***
    https://bugs.launchpad.net/bugs/666154

A patch has been attached to bug 665154.
Can you please check?
Thanks.

** This bug has been marked a duplicate of bug 666154
   Residual amount : Regression with bank statement
 * You can subscribe to bug 666154 by following this link: https://bugs.launchpad.net/openobject-addons/+bug/666154/+subscribe

-- 
[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 the OpenERP Project Group.

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