Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0020327 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 00. Application dictionary | major | always | 2012-04-23 13:11 | 2012-04-26 10:33 | |||
Reporter | dmiguelez | View Status | public | |||||
Assigned To | dmiguelez | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0MP12 | |||
Status | closed | Fix in branch | pi | Fixed in SCM revision | e22cf4269bbf | |||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0020327: API Change in FACT_ACCT.FACTACCTTYPE | |||||||
Description | Change: The definition of FACT_ACCT.FACTACCTTYPE is as of today as yes/no reference in the AD and a char of 1 in the database. But this is wrong, and has generated some issues. It should be defined as a list reference in the AD and as a varchar of 60 in the database. Why the change is needed: Right now through DAL, since it is a yes/no reference, only 'Y' or 'N' values can be inserted or retrieved. But it was expected that other values were possible to be inserted, so it has generated some issues that, in the end, can result in an incorrect accounting balance. Possible risks: Since the description of the database is going to change, we already know that some views that are retrieving information from this table must be changed. We also know that the module 'https://code.openbravo.com/erp/pmods/org.openbravo.acctTab/' [^] has plenty of views that must be changed. All the modules that were using DAL to retrieve information will be affected too, but since it was not working properly to begin with, we assume that the risk taken is not that huge. | |||||||
Steps To Reproduce | Login as Openbravo/openbravo Change the rol to System Administrator. Go to Tables and Columns. Select the row with the DB Table Name: Fact_Acct Go the Column Tab. Select the row with the DB Table Name: FactAcctType Realize that the Reference is defined as YesNo | |||||||
Proposed Solution | Change the AD definition to a list reference. Change the Database definition to varchar of 60. Change the AD definition of the views that are affected and belong to core. Raise an issue to change the AD definitions of the views present in the accounting tab module. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0047877) iciordia (viewer) 2012-04-23 13:38 |
Before moving forward lets validate -querying the central repository- that there are no modules affected. Ismael |
(0047944) dmiguelez (viewer) 2012-04-25 09:45 edited on: 2012-04-25 09:45 |
We have done two more tests: First we checked in some clients whether they have different values from what was expected inserted for this column in their database. They did not. Secondly, we checked the Centra Repository to find if there was any module that uses DAL to call the previous method, because it would be affected and there would be problems compiling. But we found no one. So we can say that this change won't break any module and it is unlikely to find a client with different data in their database. |
(0047959) iciordia (viewer) 2012-04-25 12:39 |
Thanks for the double-check. Approved. Ismael |
(0047972) hgbot (developer) 2012-04-25 18:11 |
Repository: erp/devel/api-checks Changeset: e22cf4269bbf6d0344ed5d126a5e92e8160e3cc0 Author: David Miguelez <david.miguelez <at> openbravo.com> Date: Wed Apr 25 18:04:42 2012 +0200 URL: http://code.openbravo.com/erp/devel/api-checks/rev/e22cf4269bbf6d0344ed5d126a5e92e8160e3cc0 [^] Fixes issue 20327: Changed a yes/no reference to a list reference. Changed the length of the column in the database. Changed related views. --- M model/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml M model/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_FIELD.xml M model/src-db/database/model/tables/FACT_ACCT.xml M model/src-db/database/sourcedata/AD_COLUMN.xml M model/src-db/database/sourcedata/AD_REFERENCE.xml M model/src-db/database/sourcedata/AD_REF_LIST.xml --- |
(0047986) hgbot (developer) 2012-04-26 08:58 |
Repository: erp/devel/api-checks Changeset: 14692b1b47602ca577d5437a16ffcedce878fd49 Author: David Miguelez <david.miguelez <at> openbravo.com> Date: Thu Apr 26 08:58:02 2012 +0200 URL: http://code.openbravo.com/erp/devel/api-checks/rev/14692b1b47602ca577d5437a16ffcedce878fd49 [^] Related to issue 20327: Changed generated java classes. --- M java/reference/java.japi.gz --- |
(0047992) mirurita (viewer) 2012-04-26 10:33 |
API build established FactAcctType column is a List containing the following values N: Normal C: Close R: Regularization O: Open Physical definition of the column has been changed to VARCHAR(60) |
![]() |
|||
Date Modified | Username | Field | Change |
2012-04-23 13:11 | dmiguelez | New Issue | |
2012-04-23 13:11 | dmiguelez | Assigned To | => iciordia |
2012-04-23 13:11 | dmiguelez | Modules | => Core |
2012-04-23 13:11 | dmiguelez | OBNetwork customer | => No |
2012-04-23 13:11 | dmiguelez | Relationship added | related to 0011411 |
2012-04-23 13:38 | iciordia | Note Added: 0047877 | |
2012-04-25 09:45 | dmiguelez | Note Added: 0047944 | |
2012-04-25 09:45 | dmiguelez | Note Edited: 0047944 | View Revisions |
2012-04-25 12:39 | iciordia | Note Added: 0047959 | |
2012-04-25 12:40 | iciordia | Assigned To | iciordia => dmiguelez |
2012-04-25 16:41 | dmiguelez | Status | new => acknowledged |
2012-04-25 16:41 | dmiguelez | Status | acknowledged => scheduled |
2012-04-25 16:41 | dmiguelez | fix_in_branch | => pi |
2012-04-25 18:11 | hgbot | Checkin | |
2012-04-25 18:11 | hgbot | Note Added: 0047972 | |
2012-04-25 18:11 | hgbot | Status | scheduled => resolved |
2012-04-25 18:11 | hgbot | Resolution | open => fixed |
2012-04-25 18:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/api-checks/rev/e22cf4269bbf6d0344ed5d126a5e92e8160e3cc0 [^] |
2012-04-26 08:58 | hgbot | Checkin | |
2012-04-26 08:58 | hgbot | Note Added: 0047986 | |
2012-04-26 10:33 | mirurita | Note Added: 0047992 | |
2012-04-26 10:33 | mirurita | Status | resolved => closed |
2012-04-26 10:33 | mirurita | Fixed in Version | => 3.0MP12 |
Copyright © 2000 - 2009 MantisBT Group |