Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0014395 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2010-09-01 17:39 | 2010-09-17 00:00 | |||
Reporter | vmromanos | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | acf15c4cab5c | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Oracle | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.50MP20 | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0014395: Strange behaviour updating a dataset | |||||||
Description | Due to the bug 0014034, we have updated the Spanish Taxes dataset with the following modifications: 1. Remove C_TAX_ZONE records associated with 6 taxes 2. Remove the Country and To Country data from the C_Tax table of these 6 taxes 3. Added more Taxes with their new C_TAX_ZONE records. We have applied this new dataset into a new client and everything works fine, however, if we use this dataset for updating an existing client the point 2 (remove the Country and To Country data from the C_Tax table of these 6 taxes) doesn't work. The old data is still there. | |||||||
Steps To Reproduce | 1. Install the Spanish Taxes Module version 1.2.17 from the Central Repository (last stable version) 2. Create a new client and apply the Taxes dataset in the Initial Client Setup 3. Search "Importaciones 16%" tax at Financial Management || Accounting || Setup || Tax Rate. Check Country= USA and To Country=Spain 4. Install the 1.2.18 version from the provided .obx 5. Apply the dataset to the previous client through the Enterprise Module Management (Org *) 6. Search again the "Importaciones 16%" tax at Financial Management || Accounting || Setup || Tax Rate. Check Country= USA and Destination Country=Spain, which is wrong, these two fields should be empty. 7. Create a new client applying the 1.2.18 dataset. 8. Search again the "Importaciones 16%" tax at Financial Management || Accounting || Setup || Tax Rate. Check Country= NULL and Destination Country=NULL, which is OK. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|||||||||||||||||||||||||
|
![]() |
|
(0030565) mtaal (viewer) 2010-09-02 09:19 |
The import does normally not remove data. There is one case where data is removed. This is: - when the data is child data and the parent and child exported together - the parent is exported as a business object (see the isBusinessObject flag in the dataset_table), so when checking the xml you would see the hierarchical structure of the parent and childs in the xml Then when such a xml gets imported then any removed child (not present anymore in the xml) should be removed from the database also. gr. Martin |
(0030575) vmromanos (viewer) 2010-09-02 10:22 |
Hi Martin, The problem is not when removing the children data (C_TAX_ZONE). This is working fine using the IsBusinessObject flag. The problem is that 2 columns of the C_Tax table remember its previous value instead of changing to the new one (NULL) |
(0030897) hgbot (developer) 2010-09-09 13:41 |
Repository: erp/devel/pi Changeset: acf15c4cab5cfe2b47e2201f8b12eb336380da12 Author: Martin Taal <martin.taal <at> openbravo.com> Date: Thu Sep 09 13:40:34 2010 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/acf15c4cab5cfe2b47e2201f8b12eb336380da12 [^] Fixes issue 14395: Strange behaviour updating a dataset --- M src/org/openbravo/dal/xml/XMLEntityConverter.java --- |
(0030919) hudsonbot (viewer) 2010-09-10 09:07 |
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated: Changeset: http://code.openbravo.com/erp/devel/main/rev/acf15c4cab5c [^] Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/c135d149a438 [^] Tests: http://builds.openbravo.com/view/int/ [^] OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18362.obx [^] |
(0031152) marvintm (viewer) 2010-09-16 12:36 |
Verified that the change fixed the issue (the countries are null after reapplying the dataset through the Enterprise Module Management) |
![]() |
|||
Date Modified | Username | Field | Change |
2010-09-01 17:39 | vmromanos | New Issue | |
2010-09-01 17:39 | vmromanos | Assigned To | => alostale |
2010-09-01 17:39 | vmromanos | File Added: org.openbravo.localization.spain.referencedata.taxes-1.2.18.obx | |
2010-09-01 17:39 | vmromanos | OBNetwork customer | => No |
2010-09-01 17:40 | vmromanos | Relationship added | blocks 0014034 |
2010-09-01 17:47 | rafaroda | Issue Monitored: rafaroda | |
2010-09-02 08:29 | alostale | Status | new => scheduled |
2010-09-02 08:29 | alostale | Assigned To | alostale => mtaal |
2010-09-02 08:29 | alostale | fix_in_branch | => pi |
2010-09-02 09:19 | mtaal | Note Added: 0030565 | |
2010-09-02 09:19 | mtaal | Status | scheduled => feedback |
2010-09-02 10:22 | vmromanos | Note Added: 0030575 | |
2010-09-02 10:22 | vmromanos | Status | feedback => new |
2010-09-06 08:10 | alostale | Status | new => scheduled |
2010-09-07 15:58 | networkb | OBNetwork customer | No => Yes |
2010-09-07 15:58 | networkb | fix_in_branch | pi => |
2010-09-07 15:58 | networkb | Issue Monitored: networkb | |
2010-09-07 16:29 | psanjuan | Relationship added | blocks 0014456 |
2010-09-07 16:29 | psanjuan | Relationship added | blocks 0014453 |
2010-09-09 13:41 | hgbot | Checkin | |
2010-09-09 13:41 | hgbot | Note Added: 0030897 | |
2010-09-09 13:41 | hgbot | Status | scheduled => resolved |
2010-09-09 13:41 | hgbot | Resolution | open => fixed |
2010-09-09 13:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/acf15c4cab5cfe2b47e2201f8b12eb336380da12 [^] |
2010-09-10 09:07 | hudsonbot | Checkin | |
2010-09-10 09:07 | hudsonbot | Note Added: 0030919 | |
2010-09-16 12:36 | marvintm | Note Added: 0031152 | |
2010-09-16 12:36 | marvintm | Status | resolved => closed |
2010-09-17 00:00 | anonymous | sf_bug_id | 0 => 3068051 |
Copyright © 2000 - 2009 MantisBT Group |