Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012356Openbravo ERP01. General setuppublic2010-02-19 10:192010-04-14 00:00
psarobe 
adrianromero 
urgentmajoralways
closedfixed 
5
2.50MP11 
2.50MP14 
Core
No
0012356: Enterprise module management: Behaviour not correct
This is the scenario: You have two organizations A and B. You apply taxes for A and B and then the 347 for A and B

See the attach of how you see the taxes and 347 from the enterprise module management
This is the scenario: You have two organizations A and B. You apply taxes for A and B and then the 347 for A and B

1. Install Spanish taxes module and 347 module. Note: Are commercial modules
2. Rebuild the system
3. Go to General setup->Enterprise->Enterprise module management
4. Select Org A and apply taxes
5. Select Org A and apply 347
6. Select Org B and apply taxes
7. Select org B and apply 347

When applying the datasets for org B (taxes, 347) you will see both twice. See screen shot
No tags attached.
related to defect 00126842.50MP17 closed adrianromero Initial client setup window - wrong handling of reference data selection 
png egoitz.PNG (149,704) 2010-02-19 10:19
https://issues.openbravo.com/file_download.php?file_id=2246&type=bug
png
Issue History
2010-02-19 10:19psarobeNew Issue
2010-02-19 10:19psarobeAssigned To => adrianromero
2010-02-19 10:19psarobeFile Added: egoitz.PNG
2010-03-03 18:11psarobeStatusnew => scheduled
2010-03-03 18:11psarobefix_in_branch => pi
2010-03-03 19:02adrianromeroNote Added: 0025035
2010-03-08 16:05jpabloaeTarget Version2.50MP13 => 2.50MP14
2010-03-09 20:47hgbotCheckin
2010-03-09 20:47hgbotNote Added: 0025194
2010-03-09 20:47hgbotStatusscheduled => resolved
2010-03-09 20:47hgbotResolutionopen => fixed
2010-03-09 20:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c843163bc254f01aa14994b445f7c853b1349f64 [^]
2010-03-09 20:51adrianromeroNote Added: 0025195
2010-03-12 22:41hudsonbotCheckin
2010-03-12 22:41hudsonbotNote Added: 0025412
2010-03-23 17:38adrianromeroRelationship addedblocks 0012769
2010-03-23 17:39adrianromeroRelationship deletedblocks 0012769
2010-03-23 17:40adrianromeroRelationship addedblocks 0012684
2010-03-23 17:40adrianromeroRelationship replacedrelated to 0012684
2010-04-13 14:20psarobeNote Added: 0026142
2010-04-13 14:20psarobeStatusresolved => closed
2010-04-14 00:00anonymoussf_bug_id0 => 2986792

Notes
(0025035)
adrianromero   
2010-03-03 19:02   
The servlet of this window is UpdateReferenceData, the object that displays the data is ModuleReferenceDataOrgTree and the object that contains the SQL is ModuleReferenceDataOrgTree_data.xsql in the method selectOrg method.
Probably in this select data from table AD_DATASET is duplicated and this duplication of data has to be removed.
(0025194)
hgbot   
2010-03-09 20:47   
Repository: erp/devel/pi
Changeset: c843163bc254f01aa14994b445f7c853b1349f64
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Mar 09 20:52:58 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c843163bc254f01aa14994b445f7c853b1349f64 [^]

Fixes issue 0012356: Enterprise module management: Behaviour not correct

---
M src/org/openbravo/erpCommon/modules/ModuleReferenceDataOrgTree.java
---
(0025195)
adrianromero   
2010-03-09 20:51   
To test the issue just follow the reproduction steps. Only applying taxes data is enough to reproduce the issue.

After applying data sets you have to edit manually the table AD_ORGMODULE and set the version of the taxes module a minor version number in order to cheat the Enterprise module manage to think there are updates available

Go to the Enterprise module data management window and verify that there are not duplicates of the taxes module, only one line appear with a mark that an update is available as expected.
(0025412)
hudsonbot   
2010-03-12 22:41   
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/c843163bc254 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/631c626866c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16685.obx [^]
(0026142)
psarobe   
2010-04-13 14:20   
Tested working fine