Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057665Retail ModulesWeb POSpublic2025-01-16 13:042025-03-27 12:11
malsasua 
Retail 
highmajoralways
closedduplicate 
5
 
 
open
Gold
117967
No
0057665: Global mitigation is not working when there are messages not synced
The global mitigation implemented in https://issues.openbravo.com/view.php?id=56377 [^] is not working when there are messages pending to sync.

A similar fix of this issue https://issues.openbravo.com/view.php?id=57429 [^] should be implemented for the global mitigation
[offline]
1. create and complete ticket
2. do logout
[online]
3. login -> back to the past happens
4. mitigation is triggered but the messages created in 1 was not synced yet
duplicate doc number happens
We could implement the following change to handle this case:
- We can add a new rule to the "Global mitigation" mechanism.
- The new rule would check the list of pending orders to synchronize. If any of those orders has a "sequence" value for its document number, that is greater than the current sequence number in the state, then it means that the state has been corrupted.
- In this case, we will not attempt to fix the state itself. Instead, following the principle of the global mitigation, we should just reset the state, and delegate on the standard mechanism that initializes the POS state from the initial state, from the information that is read from the backend.

We need to test both the offline and the online cases.
- In the case of online, the expectation would be that the POS is opened with a new state fully reinitialized from the information from the backend.
- In the case of offline, the expectation would be that the state is reset, but then login is not possible, and the user is notified that an online login is required because there is data missing that must be loaded from the backend.

In general it should be working already like this, but we need to explicitly test both cases to ensure that both work in this way.
No tags attached.
Issue History
2025-01-16 13:04malsasuaNew Issue
2025-01-16 13:04malsasuaAssigned To => Retail
2025-01-16 13:04malsasuaOBNetwork customer => Gold
2025-01-16 13:04malsasuaSupport ticket => 117967
2025-01-16 13:04malsasuaTriggers an Emergency Pack => No
2025-01-16 19:29PracticsIssue Monitored: Practics
2025-01-17 14:04marvintmProposed Solution updated
2025-01-17 14:04marvintmStatusnew => scheduled
2025-01-17 14:04marvintmAssigned ToRetail => ranjith_qualiantech_com
2025-01-20 13:57hgbotMerge Request Status => open
2025-01-20 13:57hgbotNote Added: 0174404
2025-01-20 13:57hgbotNote Added: 0174405
2025-01-20 13:57hgbotNote Added: 0174406
2025-02-13 14:02marvintmNote Added: 0175599
2025-02-13 14:02marvintmTypedefect => design defect
2025-02-14 01:55hgbotNote Added: 0175629
2025-02-14 01:55hgbotNote Added: 0175630
2025-02-14 01:55hgbotNote Added: 0175631
2025-02-15 18:19ranjith_qualiantech_comAssigned Toranjith_qualiantech_com => Retail
2025-03-27 12:11hgbotNote Added: 0177492
2025-03-27 12:11hgbotStatusscheduled => closed
2025-03-27 12:11hgbotResolutionopen => duplicate

Notes
(0174404)
hgbot   
2025-01-20 13:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3386 [^]
(0174405)
hgbot   
2025-01-20 13:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1727 [^]
(0174406)
hgbot   
2025-01-20 13:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/804 [^]
(0175599)
marvintm   
2025-02-13 14:02   
Finally the changes are considered too risky, and we have decided not to merge them and change the issue to design defect. We believe the fix for this one should hopefully prevent the actual problem from happening:

https://issues.openbravo.com/view.php?id=57737 [^]
(0175629)
hgbot   
2025-02-14 01:55   
Merge request closed: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3386 [^]
(0175630)
hgbot   
2025-02-14 01:55   
Merge request closed: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1727 [^]
(0175631)
hgbot   
2025-02-14 01:55   
Merge request closed: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/804 [^]
(0177492)
hgbot   
2025-03-27 12:11   
Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24225 [^]