Purchase invoice: Copy project name from first row on addition of row
This commit is contained in:
parent
7d7123de37
commit
c772b3d86a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user