From c772b3d86a09dd4be08b39f38272419dd44f591e Mon Sep 17 00:00:00 2001 From: nabinhait Date: Tue, 22 Jul 2014 11:37:03 +0530 Subject: [PATCH] Purchase invoice: Copy project name from first row on addition of row --- erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js index d87456d260..4f6bd08ccb 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js @@ -112,7 +112,8 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({ entries_add: function(doc, cdt, cdn) { var row = frappe.get_doc(cdt, cdn); - this.frm.script_manager.copy_from_first_row("entries", row, ["expense_account", "cost_center"]); + this.frm.script_manager.copy_from_first_row("entries", row, + ["expense_account", "cost_center", "project_name"]); }, on_submit: function() {