From 35d01ed3a4a6ebfc83defb0a39b24e526baf78ea Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 11 Oct 2012 17:14:46 +0530 Subject: [PATCH] fixes in bank reconciliation --- accounts/doctype/bank_reconciliation/bank_reconciliation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/bank_reconciliation/bank_reconciliation.py b/accounts/doctype/bank_reconciliation/bank_reconciliation.py index e06f9798a8..def2525223 100644 --- a/accounts/doctype/bank_reconciliation/bank_reconciliation.py +++ b/accounts/doctype/bank_reconciliation/bank_reconciliation.py @@ -62,7 +62,7 @@ class DocType: def update_details(self): vouchers = [] for d in getlist(self.doclist, 'entries'): - if d.clearance_date: + if d.clearance_date and d.cheque_date: if getdate(d.clearance_date) < getdate(d.cheque_date): msgprint("Clearance Date can not be before Cheque Date (Row #%s)" % d.idx, raise_exception=1)