fixes in bank reconciliation

This commit is contained in:
Nabin Hait 2012-10-11 17:14:46 +05:30
parent 73519e1cae
commit 35d01ed3a4

View File

@ -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)