Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045192Retail ModulesOffline Modepublic2020-10-05 16:182020-12-04 12:40
sebastien_liron 
prakashmurugesan88 
immediatecriticalalways
closedfixed 
5
RR20Q2.2 
RR20Q2.2RR21Q1 
marvintm
Production - Confirmed Stable
No
0045192: cannot open pos for offline pos in remote client mode
Store is running on 20q2 pos, with remote client mode ( set by preferences ).

At some point ( after a delog or after an auto synch), we have a message while refreshing local data that BP info is missing, making it impossible to load the rest ( and to open the pos ), screenshot is attached for reference.
I just tried a scenario like this on 20q2 standard :

- set the client remote mode ( Enable Remote for Customer to Y )
- load the pos and do a sale
- disconnect internet ( I unplugged the cable )
- delog / relog ( as vallblanca )
- see the message
No tags attached.
depends on backport 0045238RR20Q4 closed prakashmurugesan88 cannot open pos for offline pos in remote client mode 
depends on backport 0045239RR20Q3.2 closed prakashmurugesan88 cannot open pos for offline pos in remote client mode 
depends on backport 0045241RR20Q2.3 closed prakashmurugesan88 cannot open pos for offline pos in remote client mode 
has duplicate defect 0045842 closed ranjith_qualiantech_com Confused message when the Full Refresh fails 
png Screenshot from 2020-10-05 08-57-19.png (851,869) 2020-10-05 16:18
https://issues.openbravo.com/file_download.php?file_id=15005&type=bug
Issue History
2020-10-05 16:18sebastien_lironNew Issue
2020-10-05 16:18sebastien_lironAssigned To => Retail
2020-10-05 16:18sebastien_lironFile Added: Screenshot from 2020-10-05 08-57-19.png
2020-10-05 16:18sebastien_lironResolution time => 1602712800
2020-10-05 16:18sebastien_lironRegression level => Production - Confirmed Stable
2020-10-05 16:18sebastien_lironTriggers an Emergency Pack => No
2020-10-12 11:10prakashmurugesan88Assigned ToRetail => prakashmurugesan88
2020-10-12 11:10prakashmurugesan88Statusnew => scheduled
2020-10-16 11:06hgbotNote Added: 0123741
2020-10-16 11:06hgbotNote Added: 0123742
2020-10-19 07:47marvintmStatusscheduled => acknowledged
2020-10-19 07:47marvintmStatusacknowledged => scheduled
2020-10-19 07:48hgbotResolutionopen => fixed
2020-10-19 07:48hgbotStatusscheduled => closed
2020-10-19 07:48hgbotFixed in Version => RR21Q1
2020-10-19 07:48hgbotNote Added: 0123758
2020-10-19 07:48hgbotNote Added: 0123759
2020-10-19 07:48hgbotNote Added: 0123760
2020-10-19 07:48hgbotNote Added: 0123761
2020-10-19 08:51marvintmStatusclosed => new
2020-10-19 08:51marvintmResolutionfixed => open
2020-10-19 08:51marvintmFixed in VersionRR21Q1 =>
2020-10-19 08:51marvintmStatusnew => scheduled
2020-10-19 08:51marvintmStatusscheduled => resolved
2020-10-19 08:51marvintmFixed in Version => RR21Q1
2020-10-19 08:51marvintmResolutionopen => fixed
2020-10-19 08:51marvintmReview Assigned To => marvintm
2020-10-19 08:51marvintmStatusresolved => closed
2020-12-04 12:35rafarodaTag Attached: NOR
2020-12-04 12:40rafarodaTag Detached: NOR
2021-02-12 02:18ranjith_qualiantech_comRelationship addedrelated to 0045842
2021-02-12 07:58marvintmRelationship replacedhas duplicate 0045842

Notes
(0123741)
hgbot   
2020-10-16 11:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/85 [^]
(0123742)
hgbot   
2020-10-16 11:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/129 [^]
(0123758)
hgbot   
2020-10-19 07:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 2f8de569c49d6f69d137e2738154a597b9eee4c5
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-10-19T05:48:07+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/2f8de569c49d6f69d137e2738154a597b9eee4c5 [^]

Fixed BUG-45192: Fixed POS loading issue in offline mode with remote for customer is set to Y
* Currently in remote mode data is not allowed to save in local(IndexedDB)
* But it is necessary to save BP and BPLocation locally to support offline
* So included a flag forceLocalSave
* Fetching(get) from indexedDB using id return object instead of array
* Therefore result is handled directly instead if it is not array

---
M web/org.openbravo.mobile.core/app/model/synchronization-buffer/MasterdataEndpoint.js
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---
(0123759)
hgbot   
2020-10-19 07:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/85 [^]
(0123760)
hgbot   
2020-10-19 07:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 43d439db783dcabad7a2685333d7779d58bd87ac
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-10-16T12:18:35+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/43d439db783dcabad7a2685333d7779d58bd87ac [^]

Fixed BUG-45192: Fixed POS loading issue in offline mode with remote for customer is set to Y
* With remote for customer Y, when the POS tries to load in offline mode it fetches BP and BPLocation from local(Indexed DB)
* But these data are not saved to local but it works with WEBSQL
* Fixed by saving BP and BPLocation to local in following scenarios
* OnLoadingEmptyReceipt, OnCreatingNewReceipt, OnDeletingReceipt, OnOpeningReceipt
* Therefore data will be available in local and webpos can be reloaded in offline.

---
M web/org.openbravo.retail.posterminal/app/model/business-object/business-partner/actions/SynchronizeBusinessPartner.js
M web/org.openbravo.retail.posterminal/app/model/business-object/business-partner/actions/SynchronizeBusinessPartnerLocation.js
M web/org.openbravo.retail.posterminal/js/model/businesspartner.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/pointofsale.js
M web/org.openbravo.retail.posterminal/js/utils/ticketListUtils.js
---
(0123761)
hgbot   
2020-10-19 07:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/129 [^]