Openbravo Issue Tracking System - POS2
View Issue Details
0052403POS2POSpublic2023-05-10 09:102023-05-31 15:26
cberner 
sreehari 
normalmajorhave not tried
closedfixed 
5
 
 
approved
No
No
0052403: 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.
depends on backport 005254623Q2.1 closed sreehari Duplicate cashup document numbers 
depends on backport 005254723Q1.3 closed sreehari Duplicate cashup document numbers 
? Updated Solution (239) 2023-05-31 07:39
https://issues.openbravo.com/file_download.php?file_id=18601&type=bug
Issue History
2023-05-10 09:10cbernerNew Issue
2023-05-10 09:10cbernerAssigned To => Retail
2023-05-10 09:10cbernerOBNetwork customer => No
2023-05-10 09:10cbernerTriggers an Emergency Pack => No
2023-05-10 09:10cbernerAssigned ToRetail => cberner
2023-05-10 09:10cbernerStatusnew => acknowledged
2023-05-10 09:12hgbotMerge Request Status => open
2023-05-10 09:12hgbotNote Added: 0149535
2023-05-10 15:30cbernerAssigned Tocberner => Retail
2023-05-10 15:31hgbotNote Added: 0149574
2023-05-10 15:34marvintmDescription Updatedbug_revision_view_page.php?rev_id=26063#r26063
2023-05-10 15:34marvintmSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26065#r26065
2023-05-10 15:34marvintmProposed Solution updated
2023-05-11 12:19sreehariAssigned ToRetail => sreehari
2023-05-15 15:16sreehariStatusacknowledged => scheduled
2023-05-18 11:34hgbotNote Added: 0149924
2023-05-18 11:35hgbotNote Added: 0149925
2023-05-22 14:59hgbotNote Added: 0150073
2023-05-24 11:07guilleaerStatusscheduled => acknowledged
2023-05-24 11:07guilleaerStatusacknowledged => scheduled
2023-05-31 07:39sreehariFile Added: Updated Solution
2023-05-31 15:26hgbotMerge Request Statusopen => approved
2023-05-31 15:26hgbotResolutionopen => fixed
2023-05-31 15:26hgbotStatusscheduled => closed
2023-05-31 15:26hgbotFixed in Version => RR23Q3
2023-05-31 15:26hgbotNote Added: 0150549
2023-05-31 15:26hgbotNote Added: 0150550

Notes
(0149535)
hgbot   
2023-05-10 09:12   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1184 [^]
(0149574)
hgbot   
2023-05-10 15:31   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1184 [^]
(0149924)
hgbot   
2023-05-18 11:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1816 [^]
(0149925)
hgbot   
2023-05-18 11:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1199 [^]
(0150073)
hgbot   
2023-05-22 14:59   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1816 [^]
(0150549)
hgbot   
2023-05-31 15:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: d18adf16f7262e9997b78407e01b4ff0c680e484
Author: Sreehari Venkataraman <sreehari@qualiantech.com>
Date: 31-05-2023 11:44:25
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/d18adf16f7262e9997b78407e01b4ff0c680e484 [^]

Fixes ISSUE-52403: Added obposSequencenumber condition for backend update
*cashup sequence last number will be updated when json has obposSequenceprefix or obposSequencenumber

---
M src/org/openbravo/retail/posterminal/UpdateCashup.java
---
(0150550)
hgbot   
2023-05-31 15:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1199 [^]