mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
refactor: Relocate doc variable for better scope management
(cherry picked from commit 488b60fc27)
This commit is contained in:
@@ -138,7 +138,6 @@ erpnext.PointOfSale.ItemSelector = class {
|
|||||||
|
|
||||||
make_search_bar() {
|
make_search_bar() {
|
||||||
const me = this;
|
const me = this;
|
||||||
const doc = me.events.get_frm().doc;
|
|
||||||
this.$component.find(".search-field").html("");
|
this.$component.find(".search-field").html("");
|
||||||
this.$component.find(".item-group-field").html("");
|
this.$component.find(".item-group-field").html("");
|
||||||
|
|
||||||
@@ -163,6 +162,7 @@ erpnext.PointOfSale.ItemSelector = class {
|
|||||||
me.filter_items();
|
me.filter_items();
|
||||||
},
|
},
|
||||||
get_query: function () {
|
get_query: function () {
|
||||||
|
const doc = me.events.get_frm().doc;
|
||||||
return {
|
return {
|
||||||
query: "erpnext.selling.page.point_of_sale.point_of_sale.item_group_query",
|
query: "erpnext.selling.page.point_of_sale.point_of_sale.item_group_query",
|
||||||
filters: {
|
filters: {
|
||||||
|
|||||||
Reference in New Issue
Block a user