patch fix - skip query if no when_then case
This commit is contained in:
parent
6d2dfac44e
commit
41cb6cc491
@ -47,6 +47,9 @@ def update_records(doctype, comp_dict):
|
|||||||
THEN "%s"
|
THEN "%s"
|
||||||
'''%(company, department, records[department]))
|
'''%(company, department, records[department]))
|
||||||
|
|
||||||
|
if not when_then:
|
||||||
|
return
|
||||||
|
|
||||||
frappe.db.sql("""
|
frappe.db.sql("""
|
||||||
update
|
update
|
||||||
`tab%s`
|
`tab%s`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user