Openbravo Issue Tracking System - POS2
View Issue Details
0056981POS2POSpublic2024-09-26 12:532024-11-05 15:09
malsasua 
Rajesh_18 
normalmajorsometimes
closedfixed 
5
 
24Q4 
No
0056981: EWI caused by concurrence with Open Session and Cash Management events
When login is done, and count differences are set during Initial Count, two messages are created: Open Session and Cash Management Movement

Sometimes, the timestamp for the two messages is exactly the same milisecond

The two messages generate two different import entries. It could cause the two messages are processed at the same time by two different Import Entry threads

In this case, one ewi is raised:
ERROR: duplicate key value violates unique constraint "obpos_appcash_pk"
n/a
in OpenSession message, include the Cash Differences info, and create one unique message and then, one unique Data Import Entry
No tags attached.
blocks defect 0056555 closed Rajesh_18 EWI caused by concurrence with Open Session and Cash Management events 
Issue History
2024-11-05 12:38marvintmTypedefect => backport
2024-11-05 12:38marvintmTarget Version => 24Q4
2024-11-05 14:06hgbotNote Added: 0171422
2024-11-05 15:09hgbotNote Added: 0171434
2024-11-05 15:09hgbotResolutionopen => fixed
2024-11-05 15:09hgbotStatusscheduled => closed
2024-11-05 15:09hgbotNote Added: 0171435

Notes
(0171422)
hgbot   
2024-11-05 14:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/170 [^]
(0171434)
hgbot   
2024-11-05 15:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/170 [^]
(0171435)
hgbot   
2024-11-05 15:09   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: 4795a8772dc31d7f03b2b1733e0d05b25d83667c
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 05-11-2024 18:33:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/4795a8772dc31d7f03b2b1733e0d05b25d83667c [^]

Fixed ISSUE-56981: Opensession import entry is created in prehook so that cash mgnt import entry will not fail

---
M web-jspack/org.openbravo.retail.sessions/src/model/till/actions/OpenTillInServer.js
M web-jspack/org.openbravo.retail.sessions/src/ob-init.js
---