From 880b3ef6c0b22401ddbfb032f0c76f753534b2b8 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 6 Jun 2014 11:45:11 +0530 Subject: [PATCH] added qty updating option multi-item selector --- erpnext/public/js/transaction.js | 2 +- erpnext/selling/sales_common.js | 2 +- erpnext/stock/doctype/stock_entry/stock_entry.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js index a1d9f388ff..27ee1521c8 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 1cc643eb40..63ffb36fb0 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 553b25c491..a42a865cbb 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(); },