[Fix] POS not opening

This commit is contained in:
Rohit Waghchaure 2018-03-30 14:29:18 +05:30
parent ff2e4c898a
commit 5e0cabc538

View File

@ -9,7 +9,7 @@ frappe.pages['point-of-sale'].on_page_load = function(wrapper) {
});
frappe.db.get_value('POS Settings', {name: 'POS Settings'}, 'is_online', (r) => {
if (r && r.use_pos_in_offline_mode && !cint(r.use_pos_in_offline_mode)) {
if (r && !cint(r.use_pos_in_offline_mode)) {
// online
wrapper.pos = new erpnext.pos.PointOfSale(wrapper);
window.cur_pos = wrapper.pos;