Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036130Retail ModulesWeb POSpublic2017-05-29 17:322017-06-20 16:49
aaroncalero 
jorge-garcia 
highmajoralways
closedfixed 
5
 
RR17Q3 
marvintm
No
0036130: It is possible to get duplicated document numbers in web pos
Using the Return Document Number functionality, it is possible to get duplicated document numbers on both the return document sequence and the ticket document sequence.
Login in backend.
Go to the POS Terminal window, find the VBS-1 record and define a Return No. Prefix (e.g. RETVBS1)

Login in web pos.
Create a new ticket, add a product, select the product line and on the Edit tab click on Return Line. The document number of the ticket will become a return docNo (e.g. VBSRET1/0000001).
Create a second ticket and repeat the steps. The document no. of the ticket will show VBSRET1/0000002.
Create a third ticket and repeat the steps. This third ticket will also show the VBSRET1/0000002 docNo, which is wrong.

With the third ticket open, click again on the product line and on Return Line. The ticket's docNo will become a normal docNo again (e.g. VBS1/0000110)
Change to the second ticket and repeat the steps. The documentNo will show the next number in the sequence (e.g. VBS1/0000111).
Change to the first ticket and repeat the steps. The document number will also be VBS1/0000111, repeating the documentNo.

No tags attached.
Issue History
2017-05-29 17:32aaroncaleroNew Issue
2017-05-29 17:32aaroncaleroAssigned To => Retail
2017-05-29 17:32aaroncaleroResolution time => 1497218400
2017-05-29 17:32aaroncaleroTriggers an Emergency Pack => No
2017-06-02 11:52jorge-garciaAssigned ToRetail => jorge-garcia
2017-06-02 13:37jorge-garciaStatusnew => scheduled
2017-06-14 08:45hgbotCheckin
2017-06-14 08:45hgbotNote Added: 0097379
2017-06-14 08:45hgbotStatusscheduled => resolved
2017-06-14 08:45hgbotResolutionopen => fixed
2017-06-14 08:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2997a7c6cfb6071f618f631142e9c2e12573c9d7 [^]
2017-06-14 08:46hgbotCheckin
2017-06-14 08:46hgbotNote Added: 0097380
2017-06-14 08:46hgbotCheckin
2017-06-14 08:46hgbotNote Added: 0097381
2017-06-20 16:49marvintmReview Assigned To => marvintm
2017-06-20 16:49marvintmStatusresolved => closed
2017-06-20 16:49marvintmFixed in Version => RR17Q3

Notes
(0097379)
hgbot   
2017-06-14 08:45   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2997a7c6cfb6071f618f631142e9c2e12573c9d7
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jun 02 13:31:51 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2997a7c6cfb6071f618f631142e9c2e12573c9d7 [^]

Fixed issue 36130: It is possible to get duplicated document numbers in
web pos

The solution is to check all the order in orderList to get the highest value
of the document No (for quotations, returns and sales orders).

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0097380)
hgbot   
2017-06-14 08:46   
Repository: tools/automation/pi-mobile
Changeset: 1576af56a8e8211652f8296e84b4b1c111cd8a6f
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jun 12 10:51:45 2017 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/1576af56a8e8211652f8296e84b4b1c111cd8a6f [^]

Verifies issue 36130: It is possible to get duplicated document numbers in
web pos

Added test I36130_MultiOrdersDocumentSequence.

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/documentno/I36130_MultiOrdersDocumentSequence.java
---
(0097381)
hgbot   
2017-06-14 08:46   
Repository: tools/automation/pi-mobile
Changeset: b4306f4724683fec64918ab0438cf015093d48ea
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Jun 13 10:03:19 2017 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b4306f4724683fec64918ab0438cf015093d48ea [^]

Related to issue 36130: It is possible to get duplicated document numbers in
web pos

Change test I34288_ReceiptChangeDocumentNo to be atomic.

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/documentno/I34288_ReceiptChangeDocumentNo.java
---