Merge pull request #17904 from deepeshgarg007/patch_fix

fix(patch): Fix breaking patch on develop branch
This commit is contained in:
Saurabh 2019-06-12 12:33:38 +05:30 committed by GitHub
commit ccbf646a4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {}