mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
fixes in c-form
This commit is contained in:
@@ -59,7 +59,7 @@ class DocType:
|
|||||||
|
|
||||||
webnotes.conn.sql("""update `tabSales Invoice` set c_form_no = '', modified = %s
|
webnotes.conn.sql("""update `tabSales Invoice` set c_form_no = '', modified = %s
|
||||||
where name not in (%s) and ifnull(c_form_no, '') = %s""" %
|
where name not in (%s) and ifnull(c_form_no, '') = %s""" %
|
||||||
('%s', ', '.join(['%s'*len(inv)]), '%s'),
|
('%s', ', '.join(['%s']*len(inv)), '%s'),
|
||||||
tuple([self.doc.modified] + inv + [self.doc.name]), debug=1)
|
tuple([self.doc.modified] + inv + [self.doc.name]), debug=1)
|
||||||
else:
|
else:
|
||||||
webnotes.msgprint("Please enter atleast 1 invoice in the table", raise_exception=1)
|
webnotes.msgprint("Please enter atleast 1 invoice in the table", raise_exception=1)
|
||||||
|
|||||||
Reference in New Issue
Block a user