Rifakat (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-572784-rha into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-572784-rha/+merge/98379

Hello,

In customer/supplier refund payment voucher, Write-Off Amount displays wrong 
value when we provide negative voucher Amount, hence wrong accounting entries 
are generated. Voucher lines amount should be subtracted from absolute of 
voucher Amount.

Please review this fix.

Regards,
Rifakat
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-572784-rha/+merge/98379
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-572784-rha.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py	2012-03-14 12:45:56 +0000
+++ account_voucher/account_voucher.py	2012-03-20 10:05:59 +0000
@@ -172,7 +172,7 @@
                 debit += l.amount
             for l in voucher.line_cr_ids:
                 credit += l.amount
-            res[voucher.id] =  abs(voucher.amount - abs(credit - debit))
+            res[voucher.id] =  abs(abs(voucher.amount) - abs(credit - debit))
         return res
 
     _name = 'account.voucher'

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

Reply via email to