Merge pull request #14471 from rohitwaghchaure/fix_patch_update_total_qty_field

[Fix] patch
This commit is contained in:
rohitwaghchaure
2018-06-12 01:16:52 +05:30
committed by GitHub

View File

@@ -28,6 +28,7 @@ def execute():
when dt.name = '{0}' then {1} when dt.name = '{0}' then {1}
""".format(frappe.db.escape(d.get("parent")), d.get("qty"))) """.format(frappe.db.escape(d.get("parent")), d.get("qty")))
if when_then:
frappe.db.sql(''' frappe.db.sql('''
UPDATE UPDATE
`tab%s` dt SET dt.total_qty = CASE %s END `tab%s` dt SET dt.total_qty = CASE %s END