Openbravo Issue Tracking System - Retail Modules
View Issue Details
0021154Retail ModulesWeb POSpublic2012-07-19 14:362012-09-25 13:09
alostale 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
 
No
0021154: Duplicated order document numbers
Depending on how terminal search key and number prefix is defined, it is possible to get duplicated order numbers whenever POS application is reloaded.
Terminal search key: POS-3
Prefix: P3

In this case after reaching 100 orders (P3/00100), regarless how many new orders are added in a session (they have a correlative number among themselves), next session will start with number P3/00100
No tags attached.
related to design defect 0021157RMP18 closed guilleaer Doc num calculation will not scale 
Issue History
2012-07-19 14:36alostaleNew Issue
2012-07-19 14:36alostaleAssigned To => adrianromero
2012-07-19 14:37alostaleStatusnew => scheduled
2012-07-19 14:37alostaleAssigned Toadrianromero => AugustoMauch
2012-07-19 14:37alostalefix_in_branch => pi
2012-07-19 15:27hgbotCheckin
2012-07-19 15:27hgbotNote Added: 0050759
2012-07-19 15:27hgbotStatusscheduled => resolved
2012-07-19 15:27hgbotResolutionopen => fixed
2012-07-19 15:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/97a17f8c8033e88756be9b2af41c634e3e6ef48b [^]
2012-07-19 15:49alostaleRelationship addedrelated to 0021157
2012-09-25 13:09adrianromeroStatusresolved => closed

Notes
(0050759)
hgbot   
2012-07-19 15:27   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 97a17f8c8033e88756be9b2af41c634e3e6ef48b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jul 19 15:26:52 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/97a17f8c8033e88756be9b2af41c634e3e6ef48b [^]

Fixes issue 21154: Sequence number retrieved properly with 100+ orders

At one point the searchKey of a POS terminal was being used instead of its document number prefix.

Also, the list() method is no longer being used, it has been replaced by the use of ScrollableResults, which is better in terms of performance.

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