From e3ee0b5ee8fcbf5ecb238f70f3d107a04d0b82e3 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 29 Oct 2012 14:45:58 +0530 Subject: [PATCH] floating point tolerance increased --- accounts/doctype/gl_control/gl_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/gl_control/gl_control.py b/accounts/doctype/gl_control/gl_control.py index f0c76eb822..87ce44efec 100644 --- a/accounts/doctype/gl_control/gl_control.py +++ b/accounts/doctype/gl_control/gl_control.py @@ -192,7 +192,7 @@ class DocType: # check total debit / credit # Due to old wrong entries (total debit != total credit) some voucher could be cancelled - if abs(self.td - self.tc) > 0.005 and not cancel: + if abs(self.td - self.tc) > 0.01 and not cancel: msgprint("Debit and Credit not equal for this voucher: Diff (Debit) is %s" % (self.td-self.tc)) raise Exception