*** 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 [email protected] 
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





_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to