Notes |
|
(0100201)
|
hgbot
|
2017-10-31 18:22
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: b384f4e2564ef09dd2bd2ca61a611d1600f66913
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 31 18:22:09 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b384f4e2564ef09dd2bd2ca61a611d1600f66913 [^]
Fixes issue 37204: Business partner and its location is excluded from some orgs
The columns EM_Obretco_C_bp_Location_ID and EM_Obretco_C_Bpartner_ID will be excluded of the store data for those organizations that are not part of the organization natural tree of the store being exported.
---
M src-db/database/sourcedata/AD_DATASET_COLUMN.xml
---
|
|
|
(0100708)
|
mtaal
|
2017-11-25 13:54
|
|
Hi,
I tested this and I see several things. I exported a store and installed, this went fine. However when doing smartbuild I get the exception below [1]
I was testing with a version installed earlier but with latest source code. So the anon-bp was already exported. When I did changes at runtime to the organization which was not in the store-org-tree. I created a new BP (non-standard). I set it to be the anon-bp of the org. The changes still got synchronized to the store. This because the BP was changed to a non-standard BP by this [2] eventhandler.
So I am not sure if this change in the dataset is really needed. What issue is being resolved here?
[1]
[java] 22581 WARN - SQL Command failed with: ERROR: check constraint "em_obretco_org_pos_chk" is violated by some row
[java] 22586 WARN - -- END
[java] ALTER TABLE AD_ORG
[java] ADD CONSTRAINT EM_OBRETCO_ORG_POS_CHK CHECK (EM_OBRETCO_RETAILORGTYPE = 'S' AND EM_OBRETCO_C_BPARTNER_ID IS NOT NULL AND EM_OBRETCO_C_BP_LOCATION_ID IS NOT NULL OR EM_OBRETCO_RETAILORGTYPE <> 'S')
[2]
https://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/file/tip/src/org/openbravo/retail/storeserver/synchronization/eventhandler/OrganizationEventHandlerForStandardCustomerFlag.java [^] |
|
|
(0100710)
|
mtaal
|
2017-11-25 14:55
|
|
Note: this constraint also fails in case of a BUT instance but then already in install.source |
|
|
(0100782)
|
hgbot
|
2017-11-28 12:06
|
|
|
|
(0101015)
|
hgbot
|
2017-12-13 15:20
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 83f73488abc97cb62861dd2fb137e08ab1f994c1
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Dec 13 15:20:34 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/83f73488abc97cb62861dd2fb137e08ab1f994c1 [^]
Fixes issue 37204, fixes issue 37353: Excludes columns from ad_org
The following columns are excluded from ad_org for those orgs not included in the org natural tree of the store being exported:
- EM_Obretco_C_Bpartner_ID
- EM_Obretco_C_bp_Location_ID
- EM_OBRETCO_RETAILORGTYPE
This way, the EM_OBRETCO_ORG_POS_CHK constraint is no longer working when installing the new store.
---
M src-db/database/sourcedata/AD_DATASET_COLUMN.xml
---
|
|
|
(0101025)
|
mtaal
|
2017-12-13 22:18
|
|
|