perf: get recent transaction only when component is visible
This commit is contained in:
parent
7f1d7894c2
commit
ac164c66ed
@ -62,7 +62,7 @@ erpnext.PointOfSale.PastOrderList = class {
|
||||
options: `Draft\nPaid\nConsolidated\nReturn`,
|
||||
placeholder: __('Filter by invoice status'),
|
||||
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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user