mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
patch fix - skip query if no when_then case
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user