Merge pull request #14471 from rohitwaghchaure/fix_patch_update_total_qty_field
[Fix] patch
This commit is contained in:
commit
26943184e6
@ -28,7 +28,8 @@ 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")))
|
||||||
|
|
||||||
frappe.db.sql('''
|
if when_then:
|
||||||
UPDATE
|
frappe.db.sql('''
|
||||||
`tab%s` dt SET dt.total_qty = CASE %s END
|
UPDATE
|
||||||
''' % (doctype, " ".join(when_then)))
|
`tab%s` dt SET dt.total_qty = CASE %s END
|
||||||
|
''' % (doctype, " ".join(when_then)))
|
||||||
Loading…
x
Reference in New Issue
Block a user