From bb17a192c6db996ca778efb0788dfa156ac7d0ad Mon Sep 17 00:00:00 2001 From: Jishnu-Epics Date: Sat, 21 Jun 2025 11:14:58 +0530 Subject: [PATCH] fix:updated code --- virtual_pro/hooks.py | 2 +- virtual_pro/public/js/quotation.js | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/virtual_pro/hooks.py b/virtual_pro/hooks.py index 064a97f..4423c29 100644 --- a/virtual_pro/hooks.py +++ b/virtual_pro/hooks.py @@ -43,7 +43,7 @@ # page_js = {"page" : "public/js/file.js"} # include js in doctype views -doctype_js = {"Quotation" : "public/js/quotation.js",} +# doctype_js = {"Quotation" : "public/js/quotation.js",} doctype_list_js = {"Task" : "public/js/task_list.js"} # doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"} # doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"} diff --git a/virtual_pro/public/js/quotation.js b/virtual_pro/public/js/quotation.js index 8c4529b..67e75d2 100644 --- a/virtual_pro/public/js/quotation.js +++ b/virtual_pro/public/js/quotation.js @@ -1,15 +1,15 @@ -frappe.ui.form.on('Quotation', { - refresh: function(frm) { - if (frm.doc.docstatus === 1 && frm.doc.status !== "Closed" && frm.doc.status !== "Lost" && frm.doc.status !== "Ordered") { - frm.add_custom_button("Sales Invoice", function() { - frappe.model.open_mapped_doc({ - method: "virtual_pro.events.quotation.make_sales_invoice", - frm: frm - }); - }, __('Create')); - } - setTimeout(() => { - frm.remove_custom_button('Sales Order', 'Create'); - }, 500); - } -}); \ No newline at end of file +// frappe.ui.form.on('Quotation', { +// refresh: function(frm) { +// if (frm.doc.docstatus === 1 && frm.doc.status !== "Closed" && frm.doc.status !== "Lost" && frm.doc.status !== "Ordered") { +// frm.add_custom_button("Sales Invoice", function() { +// frappe.model.open_mapped_doc({ +// method: "virtual_pro.events.quotation.make_sales_invoice", +// frm: frm +// }); +// }, __('Create')); +// } +// setTimeout(() => { +// frm.remove_custom_button('Sales Order', 'Create'); +// }, 500); +// } +// }); \ No newline at end of file