Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036305Retail ModulesStoreServerpublic2017-06-22 10:242017-06-26 09:10
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
RR17Q3 
mtaal
No
0036305: Location router is not properly defined
The Location router should work like this:
- If the location belongs to a business partner, then its change should be sent to the servers that have access to the business partner
- If not, the organization of the location is used to route the change

But what is actually happening is:
- The change is routed to all the records with access to the organization and the location
- On top of that, it is also being sent to the servers that have access to the business partner related with the organization

This results in the change being sent to more servers than needed.
In a multiserver environment:
- Create a location in the * organization, assign it to a business partner
- Modify the location
- Check that the change is sent to all the store servers, instead of only the store server that have access to the business partner
No tags attached.
Issue History
2017-06-22 10:24AugustoMauchNew Issue
2017-06-22 10:24AugustoMauchAssigned To => AugustoMauch
2017-06-22 10:24AugustoMauchTriggers an Emergency Pack => No
2017-06-23 11:35AugustoMauchReview Assigned To => mtaal
2017-06-23 11:36hgbotCheckin
2017-06-23 11:36hgbotNote Added: 0097606
2017-06-23 11:36hgbotStatusnew => resolved
2017-06-23 11:36hgbotResolutionopen => fixed
2017-06-23 11:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/8f64435de0a2b0e84fcf83a74ae2f813994028d5 [^]
2017-06-26 09:10mtaalNote Added: 0097631
2017-06-26 09:10mtaalStatusresolved => closed
2017-06-26 09:10mtaalFixed in Version => RR17Q3

Notes
(0097606)
hgbot   
2017-06-23 11:36   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 8f64435de0a2b0e84fcf83a74ae2f813994028d5
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Jun 23 11:35:07 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/8f64435de0a2b0e84fcf83a74ae2f813994028d5 [^]

Fixes issue 36305: Location router works properly for bp locations

If a location belongs to a business partner, then it will not be routed based on its organization, it will be routed to the servers where its business partner belongs to.

---
M src/org/openbravo/retail/storeserver/synchronization/router/LocationRouter.java
---
(0097631)
mtaal   
2017-06-26 09:10   
Reviewed and tested