fix: Copy discount account from first row to all Items

This commit is contained in:
GangaManoj 2021-07-12 22:32:38 +05:30 committed by Deepesh Garg
parent cfb94175a2
commit 613d08faad

View File

@ -347,8 +347,8 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
items_add: function(doc, cdt, cdn) {
var row = frappe.get_doc(cdt, cdn);
this.frm.script_manager.copy_from_first_row("items", row, ["income_account", "cost_center"]);
},
this.frm.script_manager.copy_from_first_row("items", row, ["income_account", "discount_account", "cost_center"]);
}
set_dynamic_labels: function() {
this._super();