Fixes issue 29767: "Display logic for grid column" not working
authorAlvaro Ferraz <alvaro.ferraz@openbravo.com>
Thu, 07 May 2015 11:03:35 +0200
changeset 26606 72e2b8bfe6fc
parent 26605 1414a1029667
child 26607 bb2bb339df34
Fixes issue 29767: "Display logic for grid column" not working

GL Items grid in Add Payment process is not showing accounting dimensions correctly.
The problem was that "Organization" and "Business Partner" fields didn't have display logic defined as "Cost Center", "Project", "1st Dimension" and "2nd Dimension" had, for "Purchase Order", "Sales Order", "Purchase Invoice", "Sales Invoice", "Payment In" and "Payment Out windows", because they were mandatory.
@ACCT_DIMENSION_DISPLAY@ display logic has been added to those fields for those windows.
Now, when executing computeAccountingDimensionDisplayLogic in DimensionDisplayUtility, "Organization" and "Business Partner" fields will be included. Then, contextInfo variable in evaluateDisplayLogicForGridColumns function in ob-pick-and-execute-grid.js will have the proper values for Business Partner and Organization.
src-db/database/sourcedata/AD_FIELD.xml
--- a/src-db/database/sourcedata/AD_FIELD.xml	Fri May 08 14:02:09 2015 +0200
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Thu May 07 11:03:35 2015 +0200
@@ -21803,6 +21803,7 @@
 <!--1573-->  <AD_COLUMN_ID><![CDATA[2762]]></AD_COLUMN_ID>
 <!--1573-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--1573-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--1573-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--1573-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--1573-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--1573-->  <SEQNO><![CDATA[50]]></SEQNO>
@@ -23442,6 +23443,7 @@
 <!--2052-->  <AD_COLUMN_ID><![CDATA[2163]]></AD_COLUMN_ID>
 <!--2052-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--2052-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--2052-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--2052-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2052-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2052-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -35106,6 +35108,7 @@
 <!--2762-->  <AD_COLUMN_ID><![CDATA[3486]]></AD_COLUMN_ID>
 <!--2762-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--2762-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--2762-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--2762-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2762-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2762-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -35222,6 +35225,7 @@
 <!--2766-->  <AD_COLUMN_ID><![CDATA[3499]]></AD_COLUMN_ID>
 <!--2766-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--2766-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--2766-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--2766-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--2766-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2766-->  <SEQNO><![CDATA[50]]></SEQNO>
@@ -41576,6 +41580,7 @@
 <!--3321-->  <AD_COLUMN_ID><![CDATA[3486]]></AD_COLUMN_ID>
 <!--3321-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--3321-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--3321-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--3321-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3321-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3321-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -41690,6 +41695,7 @@
 <!--3325-->  <AD_COLUMN_ID><![CDATA[3499]]></AD_COLUMN_ID>
 <!--3325-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--3325-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--3325-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--3325-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3325-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3325-->  <SEQNO><![CDATA[50]]></SEQNO>
@@ -44137,6 +44143,7 @@
 <!--3419-->  <AD_COLUMN_ID><![CDATA[2762]]></AD_COLUMN_ID>
 <!--3419-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--3419-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--3419-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--3419-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3419-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3419-->  <SEQNO><![CDATA[50]]></SEQNO>
@@ -45037,6 +45044,7 @@
 <!--3453-->  <AD_COLUMN_ID><![CDATA[2163]]></AD_COLUMN_ID>
 <!--3453-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--3453-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--3453-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--3453-->  <DISPLAYLENGTH><![CDATA[44]]></DISPLAYLENGTH>
 <!--3453-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3453-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -192827,6 +192835,7 @@
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <AD_COLUMN_ID><![CDATA[7891269C83D2655DE040007F010155CE]]></AD_COLUMN_ID>
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--2994A25901A44EFBB69D86B3341B9A74-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2994A25901A44EFBB69D86B3341B9A74-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -233978,6 +233987,7 @@
 <!--7C541AC0C758FDD7E040007F01016B4D-->  <AD_COLUMN_ID><![CDATA[7891269C83D2655DE040007F010155CE]]></AD_COLUMN_ID>
 <!--7C541AC0C758FDD7E040007F01016B4D-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--7C541AC0C758FDD7E040007F01016B4D-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--7C541AC0C758FDD7E040007F01016B4D-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--7C541AC0C758FDD7E040007F01016B4D-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--7C541AC0C758FDD7E040007F01016B4D-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--7C541AC0C758FDD7E040007F01016B4D-->  <SEQNO><![CDATA[10]]></SEQNO>
@@ -234088,6 +234098,7 @@
 <!--7C541AC0C75CFDD7E040007F01016B4D-->  <AD_COLUMN_ID><![CDATA[7891269C83D9655DE040007F010155CE]]></AD_COLUMN_ID>
 <!--7C541AC0C75CFDD7E040007F01016B4D-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--7C541AC0C75CFDD7E040007F01016B4D-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--7C541AC0C75CFDD7E040007F01016B4D-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--7C541AC0C75CFDD7E040007F01016B4D-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--7C541AC0C75CFDD7E040007F01016B4D-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--7C541AC0C75CFDD7E040007F01016B4D-->  <SEQNO><![CDATA[60]]></SEQNO>
@@ -284837,6 +284848,7 @@
 <!--CF89E182C6014DE29EB3C3B5E03AF84E-->  <AD_COLUMN_ID><![CDATA[7891269C83D9655DE040007F010155CE]]></AD_COLUMN_ID>
 <!--CF89E182C6014DE29EB3C3B5E03AF84E-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--CF89E182C6014DE29EB3C3B5E03AF84E-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--CF89E182C6014DE29EB3C3B5E03AF84E-->  <DISPLAYLOGIC><![CDATA[@ACCT_DIMENSION_DISPLAY@]]></DISPLAYLOGIC>
 <!--CF89E182C6014DE29EB3C3B5E03AF84E-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
 <!--CF89E182C6014DE29EB3C3B5E03AF84E-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--CF89E182C6014DE29EB3C3B5E03AF84E-->  <SEQNO><![CDATA[60]]></SEQNO>