@ -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
@frappe.whitelist()
def set_procedure_false():
frappe.db.sql('''update `tabSystem Mapping_Sub System` set procedure_is_published=0;
''')
frappe.db.commit()