Merge branch 'develop' into payment-terms
This commit is contained in:
commit
8a53b64ac4
@ -254,6 +254,21 @@ erpnext.buying.RequestforQuotationController = erpnext.buying.BuyingController.e
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, __("Get items from"));
|
}, __("Get items from"));
|
||||||
|
// Get items from Opportunity
|
||||||
|
this.frm.add_custom_button(__('Opportunity'),
|
||||||
|
function() {
|
||||||
|
erpnext.utils.map_current_doc({
|
||||||
|
method: "erpnext.crm.doctype.opportunity.opportunity.make_request_for_quotation",
|
||||||
|
source_doctype: "Opportunity",
|
||||||
|
target: me.frm,
|
||||||
|
setters: {
|
||||||
|
company: me.frm.doc.company
|
||||||
|
},
|
||||||
|
get_query_filters: {
|
||||||
|
enquiry_type: "Sales"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, __("Get items from"));
|
||||||
// Get items from open Material Requests based on supplier
|
// Get items from open Material Requests based on supplier
|
||||||
this.frm.add_custom_button(__('Possible Supplier'), function() {
|
this.frm.add_custom_button(__('Possible Supplier'), function() {
|
||||||
// Create a dialog window for the user to pick their supplier
|
// Create a dialog window for the user to pick their supplier
|
||||||
|
@ -245,6 +245,27 @@ def make_quotation(source_name, target_doc=None):
|
|||||||
|
|
||||||
return doclist
|
return doclist
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
|
def make_request_for_quotation(source_name, target_doc=None):
|
||||||
|
doclist = get_mapped_doc("Opportunity", source_name, {
|
||||||
|
"Opportunity": {
|
||||||
|
"doctype": "Request for Quotation",
|
||||||
|
"validation": {
|
||||||
|
"enquiry_type": ["=", "Sales"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Opportunity Item": {
|
||||||
|
"doctype": "Request for Quotation Item",
|
||||||
|
"field_map": [
|
||||||
|
["name", "opportunity_item"],
|
||||||
|
["parent", "opportunity"],
|
||||||
|
["uom", "uom"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}, target_doc)
|
||||||
|
|
||||||
|
return doclist
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def make_supplier_quotation(source_name, target_doc=None):
|
def make_supplier_quotation(source_name, target_doc=None):
|
||||||
doclist = get_mapped_doc("Opportunity", source_name, {
|
doclist = get_mapped_doc("Opportunity", source_name, {
|
||||||
|
@ -4,4 +4,5 @@ import frappe
|
|||||||
from erpnext.setup.install import create_print_zero_amount_taxes_custom_field
|
from erpnext.setup.install import create_print_zero_amount_taxes_custom_field
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doc("printing", "doctype", "print_style")
|
||||||
create_print_zero_amount_taxes_custom_field()
|
create_print_zero_amount_taxes_custom_field()
|
Loading…
x
Reference in New Issue
Block a user