Browse Source

Vehicle rename scenario fix using vehicle table name

master
administrator 11 months ago
parent
commit
44630b18a4
  1. 2
      smart_service/apis/update_validation.py

2
smart_service/apis/update_validation.py

@ -256,7 +256,7 @@ def check_all_vehicle_updates(vehicle_list=None):
def get_vehicle_id(vehicle): def get_vehicle_id(vehicle):
vehicle_id = frappe.db.sql( vehicle_id = frappe.db.sql(
'''select myid as vehicle_id from `tabVehicle` where vehicle ='{0}'; '''.format(vehicle), as_dict=1) '''select myid as vehicle_id from `tabVehicle` where name ='{0}'; '''.format(vehicle), as_dict=1)
if vehicle_id: if vehicle_id:
return vehicle_id[0]['vehicle_id'] return vehicle_id[0]['vehicle_id']
else: else:

Loading…
Cancel
Save