mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
added qty updating option multi-item selector
This commit is contained in:
@@ -42,7 +42,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
|
|||||||
this.calculate_taxes_and_totals();
|
this.calculate_taxes_and_totals();
|
||||||
}
|
}
|
||||||
if(frappe.meta.get_docfield(this.tname, "item_code")) {
|
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");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onload_post_render: function() {
|
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() {
|
setup_queries: function() {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onload_post_render: function() {
|
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();
|
this.set_default_account();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user