Openbravo Issue Tracking System - POS2
View Issue Details
0055835POS2POSpublic2024-06-25 13:242024-06-25 13:29
asier_perez 
Retail 
normalminorsometimes
newopen 
5
 
 
No
0055835: It should not be allowed to pay a ticket with a duplicated documentNo
There are some scenarios in which the orderid and/or the documentNo are duplicated from the previous ticket. In case of a duplicated orderid, there is a mechanism that detects when it is duplicated and forces the creation of a new orderid for the current ticket. However, this does not happen with the documentNo.
1) Log in to POS2
2) Go to Orders and copy the "Order No" value of any order in the list
3) Open the console from developer tools
4) In the console, type this but replacing OrderNo with the "Order No" copied in step 2: OB.App.State.getState().Ticket.documentNo = 'OrderNo'
5) Once the "Order No" of an existing order is assigned to the current order, go to Sell, add any product to the ticket, and pay for it
6) Go to Orders again => the "Order No" of the most recent order is the one you have assigned, which should not be allowed because it is duplicated
No tags attached.
related to feature request 0051445 closed javierRodriguez Create a mechanism to detect that POS is working with a duplicated ticket id 
png duplicatedOrderNo.png (34,415) 2024-06-25 13:24
https://issues.openbravo.com/file_download.php?file_id=19939&type=bug
png
Issue History
2024-06-25 13:24asier_perezNew Issue
2024-06-25 13:24asier_perezAssigned To => Retail
2024-06-25 13:24asier_perezFile Added: duplicatedOrderNo.png
2024-06-25 13:24asier_perezTriggers an Emergency Pack => No
2024-06-25 13:24asier_perezRelationship addedrelated to 0051445
2024-06-25 13:29asier_perezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28145#r28145

There are no notes attached to this issue.