Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031739Openbravo ERP09. Financial managementpublic2015-11-13 14:152015-12-17 16:00
ngarcia 
aferraz 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q3.5 
vmromanos
Core
No
0031739: UniqueValidCombination modulescript is deactivating some account combinations and creating new ones when it should not
UniqueValidCombination modulescript is deactivating some account combinations and creating new ones when it should not

- The problem is reproducible until 3.0PR15Q3.3 version, whenever an update.database is done
- It is only reproducible after 3.0PR15Q4 version if the upgrade is done from MP19 or a previous version due to the solution of the 30396 bug
As group admin Role (in a version previous to 3.0PR15Q4):
   Create a record in the General Ledger Configuration
   Add the Account type dimension to it and select an account tree already used in another General Ledger (F&B EspaƱa, S.A. Account Account)
   Check a new account combination has been created for each element value in the tree but with the new General Ledger. This is correct
   Now deactivate all the accounting combinations related with the same Account (10000 - Capital social)

* Launch the ant smartbuild -Dlocal=no command and restart Tomcat

As group admin role:
   Check that for one of the general ledgers the account combination has been set as inactive and a new one has been created
The selectDuplicates and updateValidCombinationDeactivateDuplicated functions in the UniqueValidCombination_data.xsql should group by c_acctschema_id
Approved
blocks defect 0031470 closed aferraz UniqueValidCombination modulescript is deactivating some account combinations and creating new ones when it should not 
Issue History
2015-12-16 17:43vmromanosTypedefect => backport
2015-12-16 17:43vmromanosTarget Version => 3.0PR15Q3.5
2015-12-17 15:59hgbotCheckin
2015-12-17 15:59hgbotNote Added: 0082836
2015-12-17 15:59hgbotStatusscheduled => resolved
2015-12-17 15:59hgbotResolutionopen => fixed
2015-12-17 15:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3.5/rev/08244390115f6519576b2dae2e52db56f666c94e [^]
2015-12-17 16:00vmromanosTag Attached: Approved
2015-12-17 16:00vmromanosNote Added: 0082839
2015-12-17 16:00vmromanosStatusresolved => closed

Notes
(0082836)
hgbot   
2015-12-17 15:59   
Repository: erp/backports/3.0PR15Q3.5
Changeset: 08244390115f6519576b2dae2e52db56f666c94e
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Dec 01 18:20:18 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.5/rev/08244390115f6519576b2dae2e52db56f666c94e [^]

Fixes issue 31739: UniqueValidCombination modulescript is deactivating accounts

Add group by c_acctschema_id in selectDuplicates and updateValidCombinationDeactivateDuplicated queries in UniqueValidCombination modulescript.

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/UniqueValidCombinationData.class
M src-util/modulescript/src/org/openbravo/modulescript/UniqueValidCombination_data.xsql
---
(0082839)
vmromanos   
2015-12-17 16:00   
Code review + testing (Oracle & Postgres) OK