Notes |
|
(0096704)
|
hgbot
|
2017-05-22 12:18
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: c11bd40e2aff45be5deb7ea7c794aa13aaeb592d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 22 12:18:29 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/c11bd40e2aff45be5deb7ea7c794aa13aaeb592d [^]
Fixes issue 36036: When BP is created in the store then the store-Business-Partner relation is not created in central when Store goes to online
Create secondary synchronization relation in store server which gets replicated to the central server, on central server catch the
replication and create either primary or allow secondary relation if does not yet exist.
Added synchronized table to sync bp-store table from store to central.
---
M src-db/database/sourcedata/STRSYNC_SYNCHRONIZEDTABLE.xml
M src/org/openbravo/retail/storeserver/synchronization/VersionCacheResetWriterFilterAdapter.java
M src/org/openbravo/retail/storeserver/synchronization/utils/BusinessPartnerSegmentationUtils.java
A src/org/openbravo/retail/storeserver/synchronization/BPartnerStoreWriterFilterAdapter.java
---
|
|
|
|
Reopened because it is not possible to reproduce it with the steps given |
|
|
(0097174)
|
hgbot
|
2017-06-06 23:06
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: d678475e4ce9e3af65f6328ea4636abad953e660
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Jun 06 23:06:06 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/d678475e4ce9e3af65f6328ea4636abad953e660 [^]
Fixes issue 36036: When BP is created in the store then the store-Business-Partner relation is not created in central when Store goes to online
Also compute the BP store relations in the store server
---
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/OrderEventHandler.java
---
|
|
|
(0097175)
|
mtaal
|
2017-06-06 23:06
(edited on: 2017-06-06 23:48) |
|
Changed the approach. Is much simpler, if a bpartner is created/updated in a store server and then replicated to central then we must assume that the BPartner should be linked to that store also. So then create the needed BP-store relations on write in central.
Is simpler and does not require to sync the bpartner-store relation, only do some additional actions when syncing a bpartner to central (which does not happen often, only in offline mode).
Adapted the description of the issue.
Reverted part of previous commits.
|
|
|
(0097177)
|
mtaal
|
2017-06-07 00:24
|
|
Test scenario:
- create BP in the store
- check that it gets replicated to central and that the default store is set
- then change the default store in central to something else (not-null)
- update the BP in the store by changing the tax id
- check that in central an additional store-BP relation is created
- then remove that relation in central and clear the default store in the BP in central
- update the BP in the store by changing the tax id
- check that in central the default store is set |
|
|
(0097178)
|
hgbot
|
2017-06-07 00:28
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 08cd4d0acc2de76be76b5ff106450bfbd640096c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Jun 07 00:26:09 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/08cd4d0acc2de76be76b5ff106450bfbd640096c [^]
Fixes issue 36036: When BP is created in the store then the store-Business-Partner relation is not created in central when Store goes to online
Create the BP-store relation in central whenever a BP is created/changed/updated within the store
---
M src-db/database/sourcedata/STRSYNC_EXCLUDEDCOL.xml
M src-db/database/sourcedata/STRSYNC_SYNCHRONIZEDTABLE.xml
M src/org/openbravo/retail/storeserver/synchronization/BPartnerStoreWriterFilterAdapter.java
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/OrderEventHandler.java
M src/org/openbravo/retail/storeserver/synchronization/utils/BusinessPartnerSegmentationUtils.java
---
|
|
|
(0097179)
|
hgbot
|
2017-06-07 00:28
|
|
|
|
(0097424)
|
hgbot
|
2017-06-15 18:30
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: bb7e2091aed300f29bbdd5b823aca014fbb68505
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jun 15 18:29:15 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/bb7e2091aed300f29bbdd5b823aca014fbb68505 [^]
Related with issue 36036: If business partner does not exist, continue
If there is no business partner with the given ID, just continue. Without this change, a query would be done that would result in no business partner being updated. If we know that in advance, better not make the query.
---
M src/org/openbravo/retail/storeserver/synchronization/BPartnerStoreWriterFilterAdapter.java
---
|
|
|
|
Code reviewed and verified |
|