Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040926Retail ModulesWeb POSpublic2019-05-21 12:162019-05-31 09:10
0040926: Pay Open Tickets functionality does not work in offline mode
Pay Open Tickets functionality does not work in offline mode. When trying to open the Pay Open Tickets popup while offline, the following error message is shown:
This functionality requires online operation. Check your Internet connection and if it is working, please contact your system administrator.

When using the preference "WebPOS Select Current Receipts on Pay Open Tickets", currently loaded tickets and draft tickets are automatically shown in the Pay Open Tickets popup. In offline mode, it should be possible to pay these tickets using Pay Open Tickets.
Login in backend and go to the preference window.
Create a new preference 'WebPOS Select Current Receipts on Pay Open Tickets' with value 'Y'.

Login in WebPOS.
Open the browser console, go to the Network tab and check the Offline checkbox to force the offline mode.
Do a ticket search (Menu > Open Receipt, then search without filters) to trigger the offline mode.
Create a new ticket and add a product.
Go to the Menu > Pay Open Tickets. The error mentioned in the description will be shown.
The menu entry for Pay Open Tickets checks if the session attribute connectedToERP (OB.MobileApp.model.get('connectedToERP')) is true before executing any logic.
This check should be removed to enable Pay Open Tickets in offline mode, or maybe combined with the preference WebPOS Select Current Receipts on Pay Open Tickets.
No tags attached.
Issue History
2019-05-21 12:16aaroncaleroNew Issue
2019-05-21 12:16aaroncaleroAssigned To => Retail
2019-05-21 12:16aaroncaleroTriggers an Emergency Pack => No
2019-05-24 08:43guillermogilTypedesign defect => defect
2019-05-27 10:59ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-05-27 10:59ranjith_qualiantech_comStatusnew => scheduled
2019-05-30 07:58hgbotCheckin
2019-05-30 07:58hgbotNote Added: 0112252
2019-05-30 07:58hgbotStatusscheduled => resolved
2019-05-30 07:58hgbotResolutionopen => fixed
2019-05-30 07:58hgbotFixed in SCM revision => [^]
2019-05-31 09:10marvintmReview Assigned To => marvintm
2019-05-31 09:10marvintmStatusresolved => closed
2019-05-31 09:10marvintmFixed in Version => RR19Q3

2019-05-30 07:58   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 93cede5a9d7f515f569ef8581355d0a75f15deec
Author: Ranjith S R <ranjith <at>>
Date: Thu May 30 11:27:37 2019 +0530
URL: [^]

Fixed issue 40926 : UnPaid receipts should be listed in Pay Open Tickets in Offline mode

M web/org.openbravo.retail.posterminal/js/components/menu.js
M web/org.openbravo.retail.posterminal/js/components/modal-pay-open-tickets.js