|
|
@ -435,11 +435,12 @@ def circular_api(): |
|
|
|
else: |
|
|
|
i["status"] = False |
|
|
|
return api |
|
|
|
|
|
|
|
@frappe.whitelist(allow_guest=1) |
|
|
|
def get_kms_mapping(sub_system,variant): |
|
|
|
try: |
|
|
|
data = frappe.db.sql(f'''SELECT kilometer as kilometer_name, idx as kilometer_IDX, applicable as kilometers_applicable |
|
|
|
FROM `tabKilometer Mapping_Items` where sub_systems="{sub_system}" and parent LIKE "{variant}" order by kilometer_IDX;''') |
|
|
|
FROM `tabKilometer Mapping_Items` where sub_systems="{sub_system}" and parent LIKE "{variant}" order by kilometer_IDX;''',as_dict=1) |
|
|
|
return data |
|
|
|
except Exception as e: |
|
|
|
return e |