Purchase invoice: Copy project name from first row on addition of row

This commit is contained in:
nabinhait 2014-07-22 11:37:03 +05:30
parent 7d7123de37
commit c772b3d86a

View File

@ -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() {