Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Rushabh Mehta 2012-10-11 13:45:45 +02:00
commit f20db3f410

View File

@ -62,7 +62,7 @@ class DocType:
def update_details(self): def update_details(self):
vouchers = [] vouchers = []
for d in getlist(self.doclist, 'entries'): 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): if getdate(d.clearance_date) < getdate(d.cheque_date):
msgprint("Clearance Date can not be before Cheque Date (Row #%s)" % msgprint("Clearance Date can not be before Cheque Date (Row #%s)" %
d.idx, raise_exception=1) d.idx, raise_exception=1)