fix(POS): do not fetch items until POS Profile is set (#24076)

This commit is contained in:
Rucha Mahabal
2020-12-08 09:34:22 +05:30
committed by GitHub
parent e39dd079c4
commit 51015178da

View File

@@ -1515,6 +1515,9 @@ class POSItems {
}
get_items({start = 0, page_length = 40, search_value='', item_group=this.parent_item_group}={}) {
if (!this.frm.doc.pos_profile)
return;
const price_list = this.frm.doc.selling_price_list;
return new Promise(res => {
frappe.call({