Openbravo Issue Tracking System - POS2
View Issue Details
0056982POS2POSpublic2024-09-26 12:532024-11-05 15:09
malsasua 
Rajesh_18 
normalmajorsometimes
closedfixed 
5
 
24Q3.3 
No
0056982: 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 => 24Q3.3
2024-11-05 14:05hgbotNote Added: 0171421
2024-11-05 15:09hgbotNote Added: 0171432
2024-11-05 15:09hgbotResolutionopen => fixed
2024-11-05 15:09hgbotStatusscheduled => closed
2024-11-05 15:09hgbotNote Added: 0171433

Notes
(0171421)
hgbot   
2024-11-05 14:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/169 [^]
(0171432)
hgbot   
2024-11-05 15:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/169 [^]
(0171433)
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: e5014ab1bca65f0ee7c11ca7d504abfe8c38f8b2
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 05-11-2024 18:32:13
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/e5014ab1bca65f0ee7c11ca7d504abfe8c38f8b2 [^]

Fixed ISSUE-56982: 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
---