Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006761Openbravo ERP00. Application dictionarypublic2008-12-30 17:462009-01-02 10:17
vmromanos 
vmromanos 
normalmajoralways
closedfixed 
20Ubuntu 8.04
pi 
pi 
Core
No
0006761: Problems into the organization's combobox for document's lines
When you are trying to create a document with several lines, sometimes it is impossible to select the same organization of the document's header for the lines.

The windows affected by this bug are the ones that use the "AD_Org show child organizations" validation rule for the organization's combobox.
For example:

1- As Openbravo Admin, go to Financial Management || Assets || Amortization || Header and create a new record for the organization B
2- Create a new line. You will see the following organizations: B, B1, B11, B12 and B2, i.e., the header's organization and its children (that's OK).
3- Select B12 and save the line.
4- Create a new line. Then it will just appear B12. That it is the bug because it should appear the same organizations as the previous line.
The "AD_Org show child organizations" validation rule uses the session variable @AD_Org_ID@ from the document's header. The problem is that the organization field of the lines is also stored as session variable; so, to fix it, we must not store the organization field of the lines as session variable.
No tags attached.
Issue History
2008-12-30 17:46vmromanosNew Issue
2008-12-30 17:46vmromanosAssigned To => vmromanos
2008-12-30 17:46vmromanossf_bug_id0 => 2477410
2008-12-30 17:46vmromanosRegression testing => No
2008-12-30 17:47vmromanosStatusnew => scheduled
2008-12-30 17:47vmromanosfix_in_branch => trunk
2008-12-30 17:51vmromanosNote Added: 0011775
2008-12-30 21:27svnbotCheckin
2008-12-30 21:27svnbotNote Added: 0011777
2008-12-30 21:27svnbotStatusscheduled => resolved
2008-12-30 21:27svnbotResolutionopen => fixed
2008-12-30 21:27svnbotsvn_revision => 11619
2009-01-02 10:17krishnaStatusresolved => closed

Notes
(0011775)
vmromanos   
2008-12-30 17:51   
To know exactly which tabs are affected by this bug, we can use the following SQL query:

select t.description
from ad_column c, ad_table t
where c.ad_table_id=t.ad_table_id
and c.ad_val_rule_id IN (select ad_val_rule_id from ad_val_rule where name like '%child%');

Order Line
General Ledger Journal
General Ledger Journal Line
Production Plan
Statement Line
Cash Line
Shipment Line
Inventory Count Line
Define Move Line
Produt balance on the work effort
Invoice line
Debt payment generate
Amortization Line
Debt Payment Management Lines
Remittance Lines
(0011777)
svnbot   
2008-12-30 21:27   
Repository: openbravo
Revision: 11619
Author: vmromanos
Date: 2008-12-30 21:26:50 +0100 (Tue, 30 Dec 2008)

Fixed bug 6761: Problems into the organization's combobox for document's lines.

---
U trunk/src-db/database/sourcedata/AD_COLUMN.xml
U trunk/src-db/database/sourcedata/AD_TAB.xml
U trunk/src-db/database/sourcedata/AD_TABLE.xml
U trunk/src-db/database/sourcedata/AD_WINDOW.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=11619&sc=1 [^]