patch fix - skip query if no when_then case

This commit is contained in:
Zlash65 2018-05-21 15:08:16 +05:30
parent 6d2dfac44e
commit 41cb6cc491

View File

@ -47,6 +47,9 @@ def update_records(doctype, comp_dict):
THEN "%s"
'''%(company, department, records[department]))
if not when_then:
return
frappe.db.sql("""
update
`tab%s`