Browse Source

procedure display order

master
venkataakhil 1 year ago
parent
commit
e1e9819fd5
  1. 9
      smart_service/apis/support.py

9
smart_service/apis/support.py

@ -379,9 +379,10 @@ def change_single_star_data():
def get_single_star_data():
count = frappe.db.sql('''
select count(*) from tabProcedure_Details where content like "%*%";''', as_dict=1)
print(count)
@frappe.whitelist(allow_guest=1)
def delete_procedure():
frappe.db.sql('''delete from `tabProcedure` where name = "THAR.AX-O-0007-Front Axle Overhual-en";''')
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 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
Loading…
Cancel
Save