mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
perf: get recent transaction only when component is visible
This commit is contained in:
@@ -62,7 +62,7 @@ erpnext.PointOfSale.PastOrderList = class {
|
|||||||
options: `Draft\nPaid\nConsolidated\nReturn`,
|
options: `Draft\nPaid\nConsolidated\nReturn`,
|
||||||
placeholder: __('Filter by invoice status'),
|
placeholder: __('Filter by invoice status'),
|
||||||
onchange: function() {
|
onchange: function() {
|
||||||
me.refresh_list(me.search_field.get_value(), this.value);
|
if (me.$component.is(':visible')) me.refresh_list();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
parent: this.$component.find('.status-field'),
|
parent: this.$component.find('.status-field'),
|
||||||
|
|||||||
Reference in New Issue
Block a user