From f7a856b913d2eeb1b9ddd9f84dad7a26be17cde1 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 5 Oct 2017 13:31:29 +0530 Subject: [PATCH] [Fix] Rate not fetched in the POS, User trying to add an item in the cart before loading of frm --- erpnext/selling/page/point_of_sale/point_of_sale.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 1b0b9eb392..726e80f28d 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 @@ erpnext.pos.PointOfSale = class PointOfSale { 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')) ]); }