Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030927Openbravo ERPA. Platformpublic2015-09-25 09:332015-10-01 03:36
ngarcia 
alostale 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q4 
AugustoMauch
Core
No
0030927: Auxiliary Input value is shown in Form view if its name is the same than the column associated to the field of the tab
Auxiliary Input value is shown in Form view if its name is the same than the column associated to the field of the tab
As group admin role:
   Go to Client window and set the Business Partner dimension to be shown in lines
   Remove the exceptions for that dimension and AP Invoice in the Dimension tab for AP Invoice
   Go to Purchase Invoice window, show the Business Partner column in grid view in the Lines tab
   Open one record without value in the Business Partner field in Form view and check the business partner of the header is shown there
No tags attached.
related to defect 0030495 closed aferraz Business Partner dimension is overwritten in Invoice Lines if another field is updated after changing it 
related to defect 0030944 closed dmiguelez some auxiliary inputs might be useless 
related to defect 00309483.0PR16Q1 closed alostale auxiliary input used to default a FK doesn't display FK's value identifier 
Issue History
2015-09-25 09:33ngarciaNew Issue
2015-09-25 09:33ngarciaAssigned To => platform
2015-09-25 09:33ngarciaModules => Core
2015-09-25 09:33ngarciaResolution time => 1506463200
2015-09-25 09:33ngarciaTriggers an Emergency Pack => No
2015-09-25 09:34ngarciaIssue Monitored: networkb
2015-09-25 09:41ngarciaRelationship addedrelated to 0030495
2015-09-25 10:07ngarciaResolution time1506463200 => 1446678000
2015-09-25 10:07ngarciaPriorityimmediate => urgent
2015-09-28 08:46alostaleStatusnew => scheduled
2015-09-28 08:46alostaleAssigned Toplatform => alostale
2015-09-28 09:12alostaleNote Added: 0080661
2015-09-28 09:55alostaleRelationship addedrelated to 0030944
2015-09-28 12:24alostaleReview Assigned To => AugustoMauch
2015-09-28 12:24hgbotCheckin
2015-09-28 12:24hgbotNote Added: 0080665
2015-09-28 12:24hgbotStatusscheduled => resolved
2015-09-28 12:24hgbotResolutionopen => fixed
2015-09-28 12:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e1c8609a060289500ad4a00f93891d87c5a27f14 [^]
2015-09-28 12:29alostaleRelationship addedrelated to 0030948
2015-09-28 19:49hudsonbotCheckin
2015-09-28 19:49hudsonbotNote Added: 0080677
2015-09-29 13:06hgbotCheckin
2015-09-29 13:06hgbotNote Added: 0080698
2015-09-29 16:39AugustoMauchNote Added: 0080710
2015-09-29 16:39AugustoMauchStatusresolved => closed
2015-09-29 16:39AugustoMauchFixed in Version => 3.0PR15Q4
2015-09-29 16:46hgbotCheckin
2015-09-29 16:46hgbotNote Added: 0080713
2015-09-29 22:42hudsonbotCheckin
2015-09-29 22:42hudsonbotNote Added: 0080725
2015-10-01 03:36hudsonbotCheckin
2015-10-01 03:36hudsonbotNote Added: 0080765

Notes
(0080661)
alostale   
2015-09-28 09:12   
Query to get all auxiliary inputs for this same case: they have the same name as a field in the tab they are defined in


select w.name, t.name, f.name, i.code
from ad_auxiliarinput i, ad_field f, ad_column c, ad_window w, ad_tab t
where f.ad_tab_id = i.ad_tab_id
and f.ad_column_id = c.ad_column_id
and c.columnname ilike i.name
and t.ad_tab_id = f.ad_tab_id
and w.ad_window_id = t.ad_window_id
(0080665)
hgbot   
2015-09-28 12:24   
Repository: erp/devel/pi
Changeset: e1c8609a060289500ad4a00f93891d87c5a27f14
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Sep 28 09:01:38 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e1c8609a060289500ad4a00f93891d87c5a27f14 [^]

fixed bug 30927: editting a record with aux input, actual value is overwritten

  When a tab has an auxiliary input having the same name than one of its fields,
  the value of that auxiliary input is used to set the value for that field. This
  is correct and as it is the manner to define different defaults for the same
  column in different tabs.

  The problem is this is calculated even when editing an existent record, which is
  not correct, in this case the current value for that record should prevail over
  the auxiliary input.

  This case is now taken into account, not calculating auxiliary inputs in FIC in
  modes EDIT and CHANGE when there is a field with the same column name.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0080677)
hudsonbot   
2015-09-28 19:49   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/e823cc35e61e [^]
Maturity status: Test
(0080698)
hgbot   
2015-09-29 13:06   
Repository: erp/devel/pi
Changeset: 47ec5cda846f4c8230dd4173b51ec7fe033842a2
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Sep 29 13:06:08 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/47ec5cda846f4c8230dd4173b51ec7fe033842a2 [^]

related to bug 30927, related to bug 30495: change mode calculates aux input

  Previous changeset for issue 0030927 didn't work correctly in CHANGE modee, in
  this case auxiliary inputs named like a column in the tab were recalculted.

  This was caused because the code relied on allColumns variable to hold a list
  of all existent columns in the tab, this was the case for NEW mode but not for
  CHANGE where allColumns only contains the list of modified columns.

  Fixed by calculating list of all columns externally.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0080710)
AugustoMauch   
2015-09-29 16:39   
Code reviewed and verified in pi@9ee648f47df5

Now the FIC returns null for the value of the conflicting auxiliary input. This does not have consequences because if the auxiliary input was reference (for instance in a display logic), the value of the column will be used.
(0080713)
hgbot   
2015-09-29 16:46   
Repository: erp/devel/pi
Changeset: 1bd0b0e1846f5c8d5531ced3dacd6c622bd8afb6
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Sep 29 16:46:01 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1bd0b0e1846f5c8d5531ced3dacd6c622bd8afb6 [^]

Fixes Issue 30944. Reverts fix done in Issue 30495 since it is no
longer needed due to a fix for Issue 30927 done by platform team.

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
---
(0080725)
hudsonbot   
2015-09-29 22:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ebe9ebd06ddd [^]
Maturity status: Test
(0080765)
hudsonbot   
2015-10-01 03:36   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f63a11a49473 [^]
Maturity status: Test