[Fix] Rate not fetched in the POS, User trying to add an item in the cart before loading of frm

This commit is contained in:
Rohit Waghchaure 2017-10-05 13:31:29 +05:30
parent 7d4fd35aa3
commit f7a856b913

View File

@ -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'))
]);
}