← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/6.0-opw-5186-ach into lp:openobject-addons/6.0

 

Anup(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/6.0-opw-5186-ach into lp:openobject-addons/6.0.

Requested reviews:
  Jay Vora (OpenERP) (jvo-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-5186-ach/+merge/57650

Hello,

   When the Paid Amount is less than the Open Balance The writeoff calculated is wrong. This fixes the issue. Please check it and share your views.

Thanks.


-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-5186-ach/+merge/57650
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/6.0-opw-5186-ach.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py	2011-01-17 11:20:56 +0000
+++ account_voucher/account_voucher.py	2011-04-14 10:20:37 +0000
@@ -145,9 +145,9 @@
     def _compute_writeoff_amount(self, cr, uid, line_dr_ids, line_cr_ids, amount):
         debit = credit = 0.0
         for l in line_dr_ids:
-            debit += l['amount']
+            debit += l['amount_unreconciled']
         for l in line_cr_ids:
-            credit += l['amount']
+            credit += l['amount_unreconciled']
         return abs(amount - abs(credit - debit))
 
     def onchange_line_ids(self, cr, uid, ids, line_dr_ids, line_cr_ids, amount):


Follow ups