Browse Source

Update set publish in system mapping for procedure update

master
venkataakhil 2 years ago
parent
commit
933c119605
  1. 2
      smart_service/transactions/doctype/procedure/procedure.py

2
smart_service/transactions/doctype/procedure/procedure.py

@ -37,7 +37,7 @@ class Procedure(Document):
if not self.is_new():
frappe.db.sql(
f"""UPDATE `tabSystem Mapping_Sub System` set procedure_is_published=0 where procedure='{self.name}';""")
f"""UPDATE `tabSystem Mapping_Sub System` set procedure_is_published=0 where `procedure`='{self.name}';""")
frappe.db.commit()

Loading…
Cancel
Save