Add Serial Number button in Delivery Note and Sales Invoice's Packing List (#16080)

This commit is contained in:
RicardoJohann 2018-12-10 10:13:03 -02:00 committed by Rushabh Mehta
parent 398e47ecad
commit bc0ef0beca
3 changed files with 9 additions and 1 deletions

View File

@ -313,6 +313,10 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
erpnext.setup_serial_no();
},
packed_items_on_form_rendered: function(doc, grid_row) {
erpnext.setup_serial_no();
},
make_sales_return: function() {
frappe.model.open_mapped_doc({
method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.make_sales_return",

View File

@ -206,7 +206,7 @@ cur_frm.cscript['Declare Order Lost'] = function(){
}
frappe.ui.form.on("Quotation Item", "items_on_form_rendered", function(frm, cdt, cdn) {
frappe.ui.form.on("Quotation Item", "items_on_form_rendered", "packed_items_on_form_rendered", function(frm, cdt, cdn) {
// enable tax_amount field if Actual
})

View File

@ -223,6 +223,10 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend(
erpnext.setup_serial_no();
},
packed_items_on_form_rendered: function(doc, grid_row) {
erpnext.setup_serial_no();
},
close_delivery_note: function(doc){
this.update_status("Closed")
},