[Fix] Rate not fetched in the POS, User trying to add an item in the cart before loading of frm
diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js
index 1b0b9eb..726e80f 100644
--- a/erpnext/selling/page/point_of_sale/point_of_sale.js
+++ b/erpnext/selling/page/point_of_sale/point_of_sale.js
@@ -49,11 +49,12 @@
this.set_online_status();
},
() => this.setup_pos_profile(),
+ () => this.make_new_invoice(),
() => {
+ frappe.timeout(1);
this.make_items();
this.bind_events();
},
- () => this.make_new_invoice(),
() => this.page.set_title(__('Point of Sale'))
]);
}