Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045238Retail ModulesOffline Modepublic2020-10-05 16:182020-10-22 08:09
sebastien_liron 
prakashmurugesan88 
immediatecriticalalways
closedfixed 
5
RR20Q2.2 
RR20Q4RR20Q4 
Production - Confirmed Stable
No
0045238: 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.
blocks defect 0045192RR20Q2.2 closed prakashmurugesan88 cannot open pos for offline pos in remote client mode 
Issue History
2020-10-19 07:47marvintmTypedefect => backport
2020-10-19 07:47marvintmTarget VersionRR20Q2.2 => RR20Q4
2020-10-22 07:17hgbotNote Added: 0123830
2020-10-22 07:18hgbotNote Added: 0123831
2020-10-22 08:09hgbotResolutionopen => fixed
2020-10-22 08:09hgbotStatusscheduled => closed
2020-10-22 08:09hgbotFixed in Version => RR20Q4
2020-10-22 08:09hgbotNote Added: 0123834
2020-10-22 08:09hgbotNote Added: 0123835
2020-10-22 08:09hgbotNote Added: 0123836
2020-10-22 08:09hgbotNote Added: 0123837

Notes
(0123830)
hgbot   
2020-10-22 07:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/130 [^]
(0123831)
hgbot   
2020-10-22 07:18   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/88 [^]
(0123834)
hgbot   
2020-10-22 08:09   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1df3082ada591c344cd6337e11103a789c05dcb3
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-10-20T19:06:59+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1df3082ada591c344cd6337e11103a789c05dcb3 [^]

Fixed BUG-45238: 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
---
(0123835)
hgbot   
2020-10-22 08:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/130 [^]
(0123836)
hgbot   
2020-10-22 08:09   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 1873d11f7ba115c09bae4657c464d4c13dfb8323
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-10-20T19:07:56+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/1873d11f7ba115c09bae4657c464d4c13dfb8323 [^]

Fixed BUG-45238: 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
---
(0123837)
hgbot   
2020-10-22 08:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/88 [^]