[FIX] Account: Residual Value miscalculated
authorMustufa Rangwala <mra@mra-laptop>
Fri, 28 Jan 2011 05:45:49 +0000 (11:15 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Fri, 28 Jan 2011 05:45:49 +0000 (11:15 +0530)
lp bug: https://launchpad.net/bugs/708405 fixed

bzr revid: mra@mra-laptop-20110128054549-srjxoazwo73cmv92

addons/account/invoice.py

index 48a315e..077094a 100644 (file)
@@ -94,7 +94,7 @@ class account_invoice(osv.osv):
             if invoice.move_id:
                 for m in invoice.move_id.line_id:
                     if m.account_id.type in ('receivable','payable'):
-                        result[invoice.id] = m.amount_residual_currency
+                        result[invoice.id] += m.amount_residual_currency
         return result
 
     # Give Journal Items related to the payment reconciled to this invoice