Getting Quotation Document in Sales Invoice
This commit is contained in:
parent
b8b8dc119f
commit
0ebd3c373c
@ -157,6 +157,26 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
|
|||||||
})
|
})
|
||||||
}, __("Get items from"));
|
}, __("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() {
|
delivery_note_btn: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user