Browse Source

msgprint for system id updated

master
venkataakhil 1 year ago
parent
commit
27b08b07af
  1. 4
      smart_service/transactions/doctype/procedure/procedure.py

4
smart_service/transactions/doctype/procedure/procedure.py

@ -238,9 +238,9 @@ def update_system_id(name):
sys_procedure = frappe.db.sql("""select systems,sub_systems,system_id,sub_system_id,`procedure` from {0}.`tabSystem Mapping_Sub System` where parent = '{1}' and `procedure` = '{2}'""".format( sys_procedure = frappe.db.sql("""select systems,sub_systems,system_id,sub_system_id,`procedure` from {0}.`tabSystem Mapping_Sub System` where parent = '{1}' and `procedure` = '{2}'""".format(
current_db_name, sm, table.temp_cnt), as_dict=True) current_db_name, sm, table.temp_cnt), as_dict=True)
if sys_procedure: if sys_procedure:
frappe.msgprint("sys_procedure" + str(sys_procedure[0]['procedure']) + str(sys_procedure[0]['sub_system_id'])) frappe.msgprint("sys_procedure" + str(sys_procedure[0]['procedure']) +"DATA " + str(table.temp_cnt))
if str(table.temp_cnt) == str(sys_procedure[0]['procedure']): if str(table.temp_cnt) == str(sys_procedure[0]['procedure']):
frappe.msgprint("SSSS" + str(sys_procedure[0]['system_id'])) frappe.msgprint("inside " + str(sys_procedure[0]['system_id']) + ' ' +str(sys_procedure[0]['sub_system_id']))
sys_id = doc.variant_mapping + ',' + \ sys_id = doc.variant_mapping + ',' + \
str(sys_procedure[0]['system_id']) + ',' + \ str(sys_procedure[0]['system_id']) + ',' + \
str(sys_procedure[0]['sub_system_id']) str(sys_procedure[0]['sub_system_id'])

Loading…
Cancel
Save