rename Is Online field to Use POS in Offline Mode in pos settings

This commit is contained in:
Rohit Waghchaure
2017-09-11 11:49:25 +05:30
committed by mbauskar
parent d0823adf42
commit 1a77922e85
8 changed files with 74 additions and 13 deletions

View File

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