Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0020350 | Openbravo ERP | 00. Application dictionary | public | 2012-04-25 16:17 | 2012-05-25 12:12 | ||||||||||||||
Reporter | vmromanos | ||||||||||||||||||
Assigned To | mirurita | ||||||||||||||||||
Priority | high | Severity | major | Reproducibility | N/A | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 20 | OS Version | Debian 5.0 | |||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | 3.0MP12 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0020350: Multiple API Changes in Accounting Tabs | ||||||||||||||||||
Description | Several accounting tabs in the ERP allow the user to introduce duplicated records that can generate unexpected accounting. After reviewing all the available accounting tabs, these are the problematic ones: 1. C_BP_GROUP_ACCT (Business Partner Category Accounting tab) Inside this tab we can currently create several records for the same accounting schema. A new unique constraint is proposed: + <unique name="C_BP_GROUP_ACCT_SCHEM_GROUP_UN"> + <unique-column name="C_ACCTSCHEMA_ID"/> + <unique-column name="C_BP_GROUP_ID"/> + </unique> 2. C_BP_CUSTOMER_ACCT (Business Partner | Customer | Customer Accounting tab) Currently we have the following unique constraint: <unique name="C_BP_CUSTOMER_ACCT_BPARTNER_UN"> <unique-column name="C_BPARTNER_ID"/> <unique-column name="STATUS"/> <unique-column name="C_ACCTSCHEMA_ID"/> </unique> The status column is not used anymore with the new financial flow so we should remove it from the constraint. Probably this reason is not enough for approving the API change, however the current unique constraint has an important problem in PostgreSQL. By default the value of this column is always NULL. In PostgreSQL, when the value of any of the columns in an unique constraint is null, it doesn't work as expected. Example: if we want to store two records in the C_BP_CUSTOMER_ACCT table with the same C_BPARTNER_ID and C_ACCTSCHEMA_ID and with STATUS=NULL, PostgreSQL will allow us to do it, which is wrong. This behaviour is not reproducible in Oracle. Finally, apart from the previous reasons, there is another important one for instances migrated from Openbravo 2.50. For this instances we can have the same records for different STATUS values because it had sense in OB 2.50, but in a OB3 environment this configuration could create wrong accounting since the STATUS column is not taken into account anymore and the records appear as they were duplicated. 3. C_BP_VENDOR_ACCT (Business Partner | Vendor | Vendor Accounting tab) It's exactly the same scenario described in 2. | ||||||||||||||||||
Steps To Reproduce | See description. | ||||||||||||||||||
Proposed Solution | Although these API changes can be risky for the affected customers, it should be done ASAP because with the current configuration, the system can create wrong accounting information. To avoid problems during the update process, apart from the addition/modification of the unique constraints (and the associated messages), a build validation including alerts will be created to help the affected customers to fix their data before updating their instances. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2012-04-25 16:17 | vmromanos | New Issue | |||||||||||||||||
2012-04-25 16:17 | vmromanos | Assigned To | => iciordia | ||||||||||||||||
2012-04-25 16:17 | vmromanos | Modules | => Core | ||||||||||||||||
2012-04-25 16:18 | vmromanos | Relationship added | related to 0013691 | ||||||||||||||||
2012-04-25 20:53 | iciordia | Note Added: 0047983 | |||||||||||||||||
2012-04-25 20:53 | iciordia | Assigned To | iciordia => vmromanos | ||||||||||||||||
2012-04-26 12:14 | vmromanos | Status | new => scheduled | ||||||||||||||||
2012-04-26 12:14 | vmromanos | Note Added: 0048006 | |||||||||||||||||
2012-04-26 12:14 | vmromanos | fix_in_branch | => pi | ||||||||||||||||
2012-05-02 13:29 | mirurita | Priority | immediate => high | ||||||||||||||||
2012-05-02 13:29 | mirurita | fix_in_branch | pi => | ||||||||||||||||
2012-05-10 12:12 | gorka_gil | Assigned To | vmromanos => mirurita | ||||||||||||||||
2012-05-15 18:54 | hgbot | Checkin | |||||||||||||||||
2012-05-15 18:54 | hgbot | Note Added: 0048664 | |||||||||||||||||
2012-05-15 18:54 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2012-05-15 18:54 | hgbot | Resolution | open => fixed | ||||||||||||||||
2012-05-15 18:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/7bd897420af5cc6bb4fbb318f7215f67d6c15011 [^] | ||||||||||||||||
2012-05-16 19:02 | hgbot | Checkin | |||||||||||||||||
2012-05-16 19:02 | hgbot | Note Added: 0048714 | |||||||||||||||||
2012-05-22 11:39 | mirurita | Note Added: 0048851 | |||||||||||||||||
2012-05-22 11:39 | mirurita | Status | resolved => closed | ||||||||||||||||
2012-05-22 11:39 | mirurita | Fixed in Version | => 3.0MP12 | ||||||||||||||||
2012-05-25 12:12 | hudsonbot | Checkin | |||||||||||||||||
2012-05-25 12:12 | hudsonbot | Note Added: 0049139 | |||||||||||||||||
2012-05-25 12:12 | hudsonbot | Checkin | |||||||||||||||||
2012-05-25 12:12 | hudsonbot | Note Added: 0049153 | |||||||||||||||||
2012-06-28 16:00 | alostale | Relationship added | related to 0020891 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|