diff --git a/smart_service/apis/v2/master.py b/smart_service/apis/v2/master.py index 8204891..03b6e3a 100644 --- a/smart_service/apis/v2/master.py +++ b/smart_service/apis/v2/master.py @@ -77,7 +77,7 @@ def get_feature_finder(vehicle, variant, language): ffm.feature_pdf as pdf from `tabFeature Finder` ff left join `tabFeature Finder Master` ffm on ff.features_names = ffm.feature_name where ff.vehicle = "{vehicle}" and ffm.vehicle = "{vehicle}" and ff.variant = "{variant}" - and ff.language = "{language}"; + and ff.language = "{language}" and ffm.language = "{language}"; """, as_dict=1) else: feature_finder_details = frappe.db.sql(f"""select ff.name,ff.vehicle,ff.vehicle_id,ff.variant,ff.variant_id,ff.language, diff --git a/smart_service/masters/doctype/role_master/role_master.json b/smart_service/masters/doctype/role_master/role_master.json index f1c48a0..f6424bb 100644 --- a/smart_service/masters/doctype/role_master/role_master.json +++ b/smart_service/masters/doctype/role_master/role_master.json @@ -15,7 +15,8 @@ "active_status", "display_order", "my_id", - "modules" + "modules", + "skill_id" ], "fields": [ { @@ -67,11 +68,16 @@ "fieldtype": "Small Text", "hidden": 1, "label": "Modules" + }, + { + "fieldname": "skill_id", + "fieldtype": "Data", + "label": "Skill Id" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-07-21 15:15:43.988229", + "modified": "2023-08-14 12:33:27.319600", "modified_by": "Administrator", "module": "Masters", "name": "Role Master", diff --git a/smart_service/phase_2/doctype/feature_finder/feature_finder.js b/smart_service/phase_2/doctype/feature_finder/feature_finder.js index 5487308..cf92ed4 100644 --- a/smart_service/phase_2/doctype/feature_finder/feature_finder.js +++ b/smart_service/phase_2/doctype/feature_finder/feature_finder.js @@ -139,6 +139,12 @@ frappe.ui.form.on('Feature Finder', { } }); } + + // var specifiaction_data = $('.spec-table').find('tr').find('input[type="text"]'); + // console.log(specifiaction_data,"specifiaction_data") + // specifiaction_data.each(function(){ + // console.log($(this).val()) + // }); }, after_save: function (frm) { cur_frm.refresh_fields("display_order") @@ -179,9 +185,10 @@ function custom_tab_html(frm) { res.append(ret) - $(res).find('.main').append(`