Browse Source

Procedure status update

master
venkataakhil 1 year ago
parent
commit
6accb84706
  1. 8
      smart_service/apis/support.py

8
smart_service/apis/support.py

@ -396,4 +396,10 @@ def procedure_do(variant,language,system):
data = frappe.db.sql(f'''SELECT min(tmss.idx) as systemdisplayorder,ts.system_name,ts.icon_file,ts.myid,ts.active_status,concat(variant,'-',ts.system_name) FROM
`tabSystem Mapping_Sub System` as tmss inner join `tabSystems` as ts on tmss.systems = ts.system_name
where tmss.parent LIKE "{variant}" and substring(tmss.parent,-5,2) = "{language}" and tmss.systems ="{system}";''',as_dict=1)
return data
return data
@frappe.whitelist()
def set_procedure_false():
frappe.db.sql('''update `tabSystem Mapping_Sub System` set procedure_is_published=0;
''')
frappe.db.commit()
Loading…
Cancel
Save