fix: Fix breaking patch on develop branch

This commit is contained in:
deepeshgarg007 2019-06-11 18:35:01 +05:30
parent ba715feb7f
commit 44ac3580d9

View File

@ -40,7 +40,7 @@ def execute():
# This is probably never used anywhere else as of now, but should be
values = []
for d in batch_transactions:
values.append("('{}', {})".format(frappe.db.escape(d.parent), d.qty))
values.append("({0}, {1})".format(frappe.db.escape(d.parent), d.qty))
conditions = ",".join(values)
frappe.db.sql("""
INSERT INTO `tab{}` (name, total_qty) VALUES {}