Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057665Retail ModulesWeb POSpublic2025-01-16 13:042025-01-20 13:57
malsasua 
ranjith_qualiantech_com 
highmajoralways
scheduledopen 
5
 
 
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: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:57hgbotNote Added: 0174404
2025-01-20 13:57hgbotNote Added: 0174405
2025-01-20 13:57hgbotNote Added: 0174406

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 [^]