Openbravo Issue Tracking System - POS2
View Issue Details
0052546POS2POSpublic2023-05-10 09:102023-06-07 13:16
cberner 
sreehari 
normalmajorhave not tried
closedfixed 
5
 
23Q2.1 
approved
No
No
0052546: 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 => 23Q2.1
2023-06-07 11:34hgbotNote Added: 0150860
2023-06-07 13:16hgbotMerge Request Statusopen => approved
2023-06-07 13:16hgbotResolutionopen => fixed
2023-06-07 13:16hgbotStatusscheduled => closed
2023-06-07 13:16hgbotNote Added: 0150889
2023-06-07 13:16hgbotFixed in Version => RR23Q2.1
2023-06-07 13:16hgbotNote Added: 0150890

Notes
(0150860)
hgbot   
2023-06-07 11:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1230 [^]
(0150889)
hgbot   
2023-06-07 13:16   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1230 [^]
(0150890)
hgbot   
2023-06-07 13:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: b8e5018ff2f09aeb04cb30f566301d6ea109fec2
Author: Sreehari Venkataraman <sreehari@qualiantech.com>
Date: 07-06-2023 14:59:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/b8e5018ff2f09aeb04cb30f566301d6ea109fec2 [^]

Fixes ISSUE-52546: Added obposSequencenumber condition for backend update

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