Openbravo Issue Tracking System - POS2
View Issue Details
0056246POS2POSpublic2024-08-13 07:122024-10-31 13:17
sreehari 
sreehari 
immediatecriticalrandom
closedfixed 
5
 
24Q4 
No
0056246: Implement second Mitigation for duplicating document sequence number
First Mitigation correctly detects if the state is incorrect

Second Mitigation should detect that the state is consistent, but outdated


1.Force a request to the backend, to retrieve "latest" sequence values

2.Compare these latest sequence values with the current ones in the state

Adding a else case to this if condition
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2811/diffs#f4d041f0b1c18efe7cf1078a093ace355ae7efb7_141_145 [^]
if at least one is greater in the backend -> something went wrong,
and the state i outdated.
In this case, force the regeneration of the sequence values from the ones in the backend.
No tags attached.
related to defect 0056070 closed sreehari When sequenceNumber is undefined we get it from terminal and we get DocumentNo duplicated 
related to feature request 0056377 scheduled AugustoMauch Management of inconsistent application state should be properly addressed in core2 applications 
depends on backport 005630624Q3.1 closed sreehari Implement second Mitigation for duplicating document sequence number 
depends on backport 005630724Q2.3 closed sreehari Implement second Mitigation for duplicating document sequence number 
Issue History
2024-08-13 07:12sreehariNew Issue
2024-08-13 07:12sreehariAssigned To => sreehari
2024-08-13 07:12sreehariTriggers an Emergency Pack => No
2024-08-13 07:14sreehariRelationship addedrelated to 0056070
2024-08-13 08:06sreehariStatusnew => scheduled
2024-08-13 08:33sreehariDescription Updatedbug_revision_view_page.php?rev_id=28331#r28331
2024-08-13 08:33sreehariSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28333#r28333
2024-08-14 07:26hgbotNote Added: 0168062
2024-08-14 07:27hgbotNote Added: 0168063
2024-08-16 08:07hgbotResolutionopen => fixed
2024-08-16 08:07hgbotStatusscheduled => closed
2024-08-16 08:07hgbotNote Added: 0168115
2024-08-16 08:07hgbotFixed in Version => RR24Q4
2024-08-16 08:07hgbotNote Added: 0168116
2024-08-16 08:07hgbotNote Added: 0168117
2024-08-16 08:07hgbotFixed in VersionRR24Q4 => 24Q4
2024-08-16 08:07hgbotNote Added: 0168118
2024-08-27 08:20marvintmStatusclosed => new
2024-08-27 08:20marvintmResolutionfixed => open
2024-08-27 08:20marvintmFixed in Version24Q4 =>
2024-08-27 08:20marvintmStatusnew => scheduled
2024-08-27 08:20marvintmStatusscheduled => resolved
2024-08-27 08:20marvintmFixed in Version => 24Q4
2024-08-27 08:20marvintmResolutionopen => fixed
2024-08-27 08:21marvintmStatusresolved => closed
2024-10-31 13:17malsasuaRelationship addedrelated to 0056377

Notes
(0168062)
hgbot   
2024-08-14 07:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1648 [^]
(0168063)
hgbot   
2024-08-14 07:27   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2859 [^]
(0168115)
hgbot   
2024-08-16 08:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1648 [^]
(0168116)
hgbot   
2024-08-16 08:07   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 2b4019e2e48f0cbe6ba3fd58ac342340dabc2991
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 16-08-2024 06:07:19
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/2b4019e2e48f0cbe6ba3fd58ac342340dabc2991 [^]

Fixed ISSUE-56246: Added utility functions for the mitigation mechanism

---
M web/org.openbravo.retail.posterminal/app/model/business-object/document-sequence/DocumentSequenceUtils.js
M web/org.openbravo.retail.posterminal/app/model/business-object/document-sequence/actions/InitializeSequence.js
---
(0168117)
hgbot   
2024-08-16 08:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2859 [^]
(0168118)
hgbot   
2024-08-16 08:07   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 20c43697295a2ea417f881302700b4d0e8c5646a
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 16-08-2024 06:07:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/20c43697295a2ea417f881302700b4d0e8c5646a [^]

Fixes ISSUE-56246: Added case to compare state & BO Document Sequences

---
M web-jspack/org.openbravo.pos2/src/authentication/loginInitActions.js
---