Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031541Retail ModulesWeb POSpublic2015-11-20 09:492015-12-07 18:16
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR16Q1RR16Q1 
marvintm
No
0031541: Ensure that in case of multi-server that the all the generated documents in the orderloader have the same document no
In case of multi-server approaches a ticket is send to multiple servers at the same time. This means that the same ticket is processed in 2 places, each with their own document numbers. This means that document numbers in the store and central server can be different.

For larger customers (using multi-server) the document numbers of our payments and shipments (created through the orderloader) are not critical.
Install multiple servers:
http://wiki.openbravo.com/wiki/How_to_Setup_MultiServer_Dev_Environment [^]

Create a ticket from webpos
Check the document numbers
There are 2 solution approaches:
1- generate the document number in webpos
2- use the order document number for all related business documents

The proposal is to do approach 2 as the document numbers are not really important for most customers.

Note for the invoice generated daily for the cashup we can't really control the document number like this. But to be fair this daily invoice is not important at all for store server environments.
No tags attached.
Issue History
2015-11-20 09:49mtaalNew Issue
2015-11-20 09:49mtaalAssigned To => mtaal
2015-11-20 09:49mtaalTriggers an Emergency Pack => No
2015-11-20 10:26mtaalNote Added: 0082009
2015-11-20 10:40mtaalStatusnew => scheduled
2015-11-20 10:48mtaalReview Assigned To => marvintm
2015-11-22 15:50hgbotCheckin
2015-11-22 15:50hgbotNote Added: 0082050
2015-11-22 15:50hgbotStatusscheduled => resolved
2015-11-22 15:50hgbotResolutionopen => fixed
2015-11-22 15:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ee02df1dfd189d42fe3006176981fac2d5a11251 [^]
2015-12-07 18:16marvintmStatusresolved => closed
2015-12-07 18:16marvintmFixed in Version => RR16Q1

Notes
(0082009)
mtaal   
2015-11-20 10:26   
We can re-use the use the preference use order document number for related documents. As is described here:
http://wiki.openbravo.com/wiki/Retail:Configuration_Guide#Base_Setup:_Enabling_Preference_.26_Multi-Server_Authentication [^]

We need some additional small changes to make it correctly work: payments need an incremental doc number and invoice document number should also be covered by this approach.
(0082050)
hgbot   
2015-11-22 15:50   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: ee02df1dfd189d42fe3006176981fac2d5a11251
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Nov 20 17:58:07 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ee02df1dfd189d42fe3006176981fac2d5a11251 [^]

Fixes issue 31541: Ensure that in case of multi-server that the all the generated documents in the orderloader have the same document no
Added count to make unique predictable doc numbers

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