mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
fix(POS): do not fetch items until POS Profile is set (#24076)
This commit is contained in:
@@ -1515,6 +1515,9 @@ class POSItems {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_items({start = 0, page_length = 40, search_value='', item_group=this.parent_item_group}={}) {
|
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;
|
const price_list = this.frm.doc.selling_price_list;
|
||||||
return new Promise(res => {
|
return new Promise(res => {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
|
|||||||
Reference in New Issue
Block a user