Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038153Retail ModulesStoreServerpublic2018-03-15 18:282018-03-22 23:10
naiaramartinez 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
 
mtaal
No
0038153: [BUT3886] Syncrhonization is not working for Warehouses and location
When creating a new warehouse for an store that does not have a store server, it is not working correctly. The Warehouse is synchronized to the store server (all warehouses are synchronized to all the store servers), but the location of the warehouse is synchronized after the WH and it causes an error
In a multiserver environment, with a store server with access to a given store X

In the central server:
- Login in
- Using the profile widget, change the organization to one that is not part of the natural tree of X
- Open the Warehouse window
- Create a location for the warehouse. Wait a few seconds before filling the rest of the warehouse fields and saving, in order to ensure the warehouse is routed before the warehouse is saved.
- In the Synchronization Error in Outgoing Batch, check that there is a synchronization error
No tags attached.
Issue History
2018-03-15 18:28naiaramartinezNew Issue
2018-03-15 18:28naiaramartinezAssigned To => StoreServer
2018-03-15 18:28naiaramartinezResolution time => 1522274400
2018-03-15 18:28naiaramartinezTriggers an Emergency Pack => No
2018-03-16 09:40mtaalAssigned ToStoreServer => AugustoMauch
2018-03-19 10:53AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=16873#r16873
2018-03-19 10:53AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16875#r16875
2018-03-19 10:53AugustoMauchStatusnew => scheduled
2018-03-19 11:07hgbotCheckin
2018-03-19 11:07hgbotNote Added: 0103344
2018-03-19 11:07hgbotStatusscheduled => resolved
2018-03-19 11:07hgbotResolutionopen => fixed
2018-03-19 11:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/365de82929be563389afa10861af0a3b51e8b989 [^]
2018-03-19 11:07AugustoMauchReview Assigned To => mtaal
2018-03-22 23:10mtaalNote Added: 0103448
2018-03-22 23:10mtaalStatusresolved => closed

Notes
(0103344)
hgbot   
2018-03-19 11:07   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 365de82929be563389afa10861af0a3b51e8b989
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Mar 19 11:07:14 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/365de82929be563389afa10861af0a3b51e8b989 [^]

Fixes issue 38153: Prevents synchronization error when creating a warehouse

The problem was that the location are routed based on whether they belong to a warehouse, so it was a problem if the location was routed
before it was assigned to a warehouse.

To fix this, when a warehouse is created/updated, its location is also updated, to ensure that it is rerouted.

---
A src/org/openbravo/retail/storeserver/synchronization/eventhandler/WarehouseEventHandler.java
---
(0103448)
mtaal   
2018-03-22 23:10   
reviewed