Openbravo Issue Tracking System - POS2
View Issue Details
0052680POS2POSpublic2023-06-06 13:452023-06-16 09:32
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
22Q3 
No
0052680: Create a mechanism to detect that POS is working with a duplicated ticket id
After severals cases in production where the application is working with a brand new ticket which has a used id. This creates EWIs due to try to synchronise a ticket with duplicates ids.
In production, this problem appeared after an F5 (refresh) or after a delete ticket action.
    This duplicated id should be checked:
- After an F5
- When a new ticket is set in Ticket state model

The application could have different scenarios when a ticket is set in the state. Ticket could be
- Processed tickets
- brand new tickets
- No-processed ticket which are in ticket list with products or payments on it.

It is necessary to take into account this different scenarios and do actions depending on them.
No tags attached.
blocks feature request 0051445 closed javierRodriguez Create a mechanism to detect that POS is working with a duplicated ticket id 
Issue History
2023-06-06 13:45meriem_azafNew Issue
2023-06-06 13:45meriem_azafAssigned To => Retail
2023-06-06 13:45meriem_azafTriggers an Emergency Pack => No
2023-06-06 13:45meriem_azafAssigned ToRetail => meriem_azaf
2023-06-06 13:45meriem_azafStatusnew => scheduled
2023-06-06 13:45meriem_azafRelationship addedblocks 0051445
2023-06-16 09:32hgbotNote Added: 0151268
2023-06-16 09:32hgbotResolutionopen => fixed
2023-06-16 09:32hgbotStatusscheduled => resolved
2023-06-16 09:32hgbotNote Added: 0151269
2023-06-16 09:32hgbotFixed in Version => RR22Q3.3
2023-06-16 09:32hgbotNote Added: 0151270
2023-06-16 09:32AugustoMauchStatusresolved => closed
2023-06-16 09:32AugustoMauchFixed in VersionRR22Q3.3 =>

Notes
(0151268)
hgbot   
2023-06-16 09:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1248 [^]
(0151269)
hgbot   
2023-06-16 09:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1248 [^]
(0151270)
hgbot   
2023-06-16 09:32   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 8dd25e125515b20bd24be4c16df7890c7c678a1a
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 16-06-2023 09:22:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/8dd25e125515b20bd24be4c16df7890c7c678a1a [^]

Fixed ISSUE-52680: Check before load a local ticket if it is using a duplicated order id

- Extract paid receipt request to use in different places
- Create ticket utility function isOrderIdUsedInBackend to check duplicate order ids
- Create new action preparation in load local ticket action

Related to ISSUE-52680: Ensure the is data in the paid receipt response
Related to ISSUE-52680: Send by payload the information to create a new ticket if it is needed
Related to ISSUE-52680: Fix how th ticket list is set depending on createNewTicket flow

---
M web-test/model/business-object/ticket-list/actions/LoadLocalTicket.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket-list/actions/LoadLocalTicket.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/LoadTicketUtils.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/utils/ticketListUtils.js
---