[fix] Patch (#11976)
This commit is contained in:
parent
aa66fa17d7
commit
659b46832c
@ -34,8 +34,8 @@ def execute():
|
||||
else:
|
||||
template = frappe.get_doc("Payment Terms Template", pyt_template_name)
|
||||
|
||||
payment_terms.append('WHEN `name`="%s" THEN "%s"' % (party_name, template.template_name))
|
||||
records.append(party_name)
|
||||
payment_terms.append('WHEN `name`="%s" THEN "%s"' % (frappe.db.escape(party_name), template.template_name))
|
||||
records.append(frappe.db.escape(party_name))
|
||||
|
||||
begin_query_str = "UPDATE `tab{0}` SET `payment_terms` = CASE ".format(doctype)
|
||||
value_query_str = " ".join(payment_terms)
|
||||
|
Loading…
x
Reference in New Issue
Block a user