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

This commit is contained in:
Rushabh Mehta 2012-10-03 18:32:33 +05:30
commit 3836a0d13b

View File

@ -66,9 +66,6 @@ class DocType:
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)
if getdate(d.clearance_date) < getdate(d.posting_date):
msgprint("Clearance Date can not be before Posting Date (Row #%s)" %
d.idx, raise_exception=1)
sql("update `tabJournal Voucher` set clearance_date = %s, modified = %s where name=%s", (d.clearance_date, nowdate(), d.voucher_id))
vouchers.append(d.voucher_id)