Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045239Retail ModulesOffline Modepublic2020-10-05 16:182020-12-04 12:40
sebastien_liron 
prakashmurugesan88 
immediatecriticalalways
closedfixed 
5
RR20Q2.2 
RR20Q3.2RR20Q3.2 
Production - Confirmed Stable
No
0045239: 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
NOR
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 => RR20Q3.2
2020-10-22 07:38hgbotNote Added: 0123832
2020-10-22 07:38hgbotNote Added: 0123833
2020-10-22 08:10hgbotResolutionopen => fixed
2020-10-22 08:10hgbotStatusscheduled => closed
2020-10-22 08:10hgbotFixed in Version => RR20Q3.2
2020-10-22 08:10hgbotNote Added: 0123838
2020-10-22 08:10hgbotNote Added: 0123839
2020-10-22 08:10hgbotNote Added: 0123840
2020-10-22 08:10hgbotNote Added: 0123841
2020-12-04 12:40rafarodaTag Attached: NOR

Notes
(0123832)
hgbot   
2020-10-22 07:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/89 [^]
(0123833)
hgbot   
2020-10-22 07:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/131 [^]
(0123838)
hgbot   
2020-10-22 08:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 2e17ae0c6bb1355bf167de7e312ad31ce561f431
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-10-20T13:47:44+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/2e17ae0c6bb1355bf167de7e312ad31ce561f431 [^]

Fixed BUG-45239: 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
---
(0123839)
hgbot   
2020-10-22 08:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/89 [^]
(0123840)
hgbot   
2020-10-22 08:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: ce603219660bd978a0ea4cdba27bc71b9c17d6aa
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-10-20T17:13:17+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/ce603219660bd978a0ea4cdba27bc71b9c17d6aa [^]

Fixed BUG-45239: 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/SynchronizeBusinessPartner.js
M web/org.openbravo.retail.posterminal/app/model/business-object/business-partner/SynchronizeBusinessPartnerLocation.js
M web/org.openbravo.retail.posterminal/js/model/businesspartner.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0123841)
hgbot   
2020-10-22 08:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/131 [^]