mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
feat: Provision to make RFQ against Opportunity
This commit is contained in:
@@ -76,6 +76,11 @@ frappe.ui.form.on("Opportunity", {
|
|||||||
function() {
|
function() {
|
||||||
frm.trigger("make_supplier_quotation")
|
frm.trigger("make_supplier_quotation")
|
||||||
}, __('Create'));
|
}, __('Create'));
|
||||||
|
|
||||||
|
frm.add_custom_button(__('Request For Quotation'),
|
||||||
|
function() {
|
||||||
|
frm.trigger("make_request_for_quotation")
|
||||||
|
}, __('Create'));
|
||||||
}
|
}
|
||||||
|
|
||||||
frm.add_custom_button(__('Quotation'),
|
frm.add_custom_button(__('Quotation'),
|
||||||
@@ -126,6 +131,13 @@ frappe.ui.form.on("Opportunity", {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
make_request_for_quotation: function(frm) {
|
||||||
|
frappe.model.open_mapped_doc({
|
||||||
|
method: "erpnext.crm.doctype.opportunity.opportunity.make_request_for_quotation",
|
||||||
|
frm: cur_frm
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
toggle_mandatory: function(frm) {
|
toggle_mandatory: function(frm) {
|
||||||
frm.toggle_reqd("items", frm.doc.with_items ? 1:0);
|
frm.toggle_reqd("items", frm.doc.with_items ? 1:0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user