fix: Copy Discount Account from first row

This commit is contained in:
GangaManoj 2021-07-13 02:09:40 +05:30 committed by Deepesh Garg
parent e2c83c3baf
commit 377775ad8e

View File

@ -365,7 +365,7 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
items_add: function(doc, cdt, cdn) {
var row = frappe.get_doc(cdt, cdn);
this.frm.script_manager.copy_from_first_row("items", row,
["expense_account", "cost_center", "project"]);
["expense_account", "discount_account", "cost_center", "project"]);
},
on_submit: function() {