diff --git a/smart_service/transactions/doctype/procedure/procedure.js b/smart_service/transactions/doctype/procedure/procedure.js index ab10884..55ec63d 100644 --- a/smart_service/transactions/doctype/procedure/procedure.js +++ b/smart_service/transactions/doctype/procedure/procedure.js @@ -60,29 +60,29 @@ frappe.ui.form.on('Procedure', { // frm.refresh(); }, refresh: function (frm) { - if (frm.doc.procedure_details) { - frappe.call({ - "method": "smart_service.transactions.doctype.procedure.procedure.update_system_id", - "args": { - "name": frm.doc.name, - }, - callback: function (r) { - } - }) - - - var url = window.location.host; - var regex = /[://]+/; - frappe.db.get_value('Fish', { name: "Fish" }, 'path', (r) => { - for (var i = 0; i < frm.doc.procedure_details.length; i++) { - if (frm.doc.procedure_details[i].content && r.path && frm.doc.procedure_details[i].content_type == "Link"){// && !(frm.doc.procedure_details[i].content).includes('')){ - var x = "' + frm.doc.procedure_details[i].temp_cnt + ''; - frm.doc.procedure_details[i].content = x - } - } - cur_frm.refresh_fields('procedure_details'); - }) - } + // if (frm.doc.procedure_details) { + // frappe.call({ + // "method": "smart_service.transactions.doctype.procedure.procedure.update_system_id", + // "args": { + // "name": frm.doc.name, + // }, + // callback: function (r) { + // } + // }) + + + // var url = window.location.host; + // var regex = /[://]+/; + // frappe.db.get_value('Fish', { name: "Fish" }, 'path', (r) => { + // for (var i = 0; i < frm.doc.procedure_details.length; i++) { + // if (frm.doc.procedure_details[i].content && r.path && frm.doc.procedure_details[i].content_type == "Link"){// && !(frm.doc.procedure_details[i].content).includes('')){ + // var x = "' + frm.doc.procedure_details[i].temp_cnt + ''; + // frm.doc.procedure_details[i].content = x + // } + // } + // cur_frm.refresh_fields('procedure_details'); + // }) + // } // select_row(frm); // if (frm.doc.procedure_filter == "All") { // frm.get_field('procedure_details').grid.static_rows = false;