diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js index a1d9f388ffb..27ee1521c89 100644 --- a/erpnext/public/js/transaction.js +++ b/erpnext/public/js/transaction.js @@ -42,7 +42,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({ this.calculate_taxes_and_totals(); } if(frappe.meta.get_docfield(this.tname, "item_code")) { - cur_frm.get_field(this.fname).grid.set_multiple_add("item_code"); + cur_frm.get_field(this.fname).grid.set_multiple_add("item_code", "qty"); } }, diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js index 1cc643eb408..63ffb36fb0b 100644 --- a/erpnext/selling/sales_common.js +++ b/erpnext/selling/sales_common.js @@ -22,7 +22,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ }, onload_post_render: function() { - cur_frm.get_field(this.fname).grid.set_multiple_add("item_code"); + cur_frm.get_field(this.fname).grid.set_multiple_add("item_code", "qty"); }, setup_queries: function() { diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index 553b25c491b..a42a865cbbc 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -56,7 +56,7 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({ }, onload_post_render: function() { - cur_frm.get_field(this.fname).grid.set_multiple_add("item_code"); + cur_frm.get_field(this.fname).grid.set_multiple_add("item_code", "qty"); this.set_default_account(); },