Getting Quotation Document in Sales Invoice

This commit is contained in:
AravindPranera 2017-10-31 10:26:58 +05:30 committed by Nabin Hait
parent b8b8dc119f
commit 0ebd3c373c

View File

@ -157,6 +157,26 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
})
}, __("Get items from"));
},
quotation_btn: function() {
var me = this;
this.$quotation_btn = this.frm.add_custom_button(__('Quotation'),
function() {
erpnext.utils.map_current_doc({
method: "erpnext.selling.doctype.quotation.quotation.make_quotation",
source_doctype: "Quotation",
target: me.frm,
setters: {
customer: me.frm.doc.customer || undefined,
},
get_query_filters: {
docstatus: 1,
status: ["!=", "Lost"],
company: me.frm.doc.company
}
})
}, __("Get items from"));
},
delivery_note_btn: function() {
var me = this;