Openbravo Issue Tracking System - POS2
View Issue Details
0052547POS2POSpublic2023-05-10 09:102023-06-07 15:49
cberner 
sreehari 
normalmajorhave not tried
closedfixed 
5
 
23Q1.3 
No
0052547: Duplicate cashup document numbers
When the cashup sequence prefix is not set, if the user clears the cache, the sequence is reset to 0, and the document numbers start getting duplicated.

In fact, the problem is actually that if there is no prefix, we should not be generating document numbers, and also not saving them.
1. Login WebPOS and complete a cashup (make sure the sequence prefix of the cashup is not set in this terminal)
2. Logout WebPOS, clear all application data -> DevTools -> Application -> Clear site data
3. Login WebPOS and complete another cashup

Check backend for the cashup history of the terminal: Channel - Touchpoint -> select VBS-2 -> Cashup History
The two cashups will have the same document number, or one of them starts with the first document number sequence.
Document number should not be generated if the prefix is not set.
No tags attached.
blocks defect 0052403 closed sreehari Duplicate cashup document numbers 
Issue History
2023-05-24 11:07guilleaerTypedefect => backport
2023-05-24 11:07guilleaerTarget Version => 23Q1.3
2023-06-07 15:38hgbotNote Added: 0150898
2023-06-07 15:49hgbotResolutionopen => fixed
2023-06-07 15:49hgbotStatusscheduled => closed
2023-06-07 15:49hgbotFixed in Version => RR23Q1.3
2023-06-07 15:49hgbotNote Added: 0150899
2023-06-07 15:49hgbotNote Added: 0150900

Notes
(0150898)
hgbot   
2023-06-07 15:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1233 [^]
(0150899)
hgbot   
2023-06-07 15:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1233 [^]
(0150900)
hgbot   
2023-06-07 15:49   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1e5a64c3f6e98c4bdc3ab467ff85072dec53967b
Author: Sreehari Venkataraman <sreehari@qualiantech.com>
Date: 07-06-2023 18:54:25
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1e5a64c3f6e98c4bdc3ab467ff85072dec53967b [^]

Fixes ISSUE-52547: Added obposSequencenumber condition for backend update

---
M src/org/openbravo/retail/posterminal/UpdateCashup.java
---