fixes in c-form

This commit is contained in:
Nabin Hait 2013-01-17 17:20:08 +05:30
parent 1b4f56c57f
commit 144ba186d3

View File

@ -59,7 +59,7 @@ class DocType:
webnotes.conn.sql("""update `tabSales Invoice` set c_form_no = '', modified = %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)
else:
webnotes.msgprint("Please enter atleast 1 invoice in the table", raise_exception=1)