debit-credit tolerance increased to .005

This commit is contained in:
Nabin Hait 2012-10-03 13:33:13 +05:30
parent 347fabd4aa
commit 92dd87f0fe
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ class DocType:
# check total debit / credit # check total debit / credit
# Due to old wrong entries (total debit != total credit) some voucher could be cancelled # Due to old wrong entries (total debit != total credit) some voucher could be cancelled
if abs(self.td - self.tc) > 0.001 and not cancel: if abs(self.td - self.tc) > 0.005 and not cancel:
msgprint("Debit and Credit not equal for this voucher: Diff (Debit) is %s" % (self.td-self.tc)) msgprint("Debit and Credit not equal for this voucher: Diff (Debit) is %s" % (self.td-self.tc))
raise Exception raise Exception

View File

@ -1,7 +1,7 @@
def execute(): def execute():
import webnotes import webnotes
vouchers = webnotes.conn.sql(""" vouchers = webnotes.conn.sql("""
select parent from `tabPurchase Taxes and Charges` select parent, parenttype, modified from `tabPurchase Taxes and Charges`
where modified >= '2012-10-02' where modified >= '2012-10-02'
and (category = 'Total' or category = 'Valuation') and (category = 'Total' or category = 'Valuation')
and parenttype != 'Purchase Taxes and Charges Master' and parenttype != 'Purchase Taxes and Charges Master'