Fixes Issue 27970:Add Read Only Logic on Landed Cost tab fields in Goods Receipt
authorUnai Martirena <unai.martirena@openbravo.com>
Fri, 24 Oct 2014 12:32:46 +0200
changeset 25275 c37f389971d2
parent 25274 962bfa536e18
child 25276 cf6c89b67300
Fixes Issue 27970:Add Read Only Logic on Landed Cost tab fields in Goods Receipt

Also hide Active field of Landed Cost tab in Goods Receipt window.
src-db/database/sourcedata/AD_AUXILIARINPUT.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_FIELD.xml
--- a/src-db/database/sourcedata/AD_AUXILIARINPUT.xml	Fri Oct 24 10:46:29 2014 +0200
+++ b/src-db/database/sourcedata/AD_AUXILIARINPUT.xml	Fri Oct 24 12:32:46 2014 +0200
@@ -3445,6 +3445,17 @@
 <!--D030CCF0F7514C898D981791049FB0DF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--D030CCF0F7514C898D981791049FB0DF--></AD_AUXILIARINPUT>
 
+<!--D0A19017CE354E62883A1404058DA667--><AD_AUXILIARINPUT>
+<!--D0A19017CE354E62883A1404058DA667-->  <AD_AUXILIARINPUT_ID><![CDATA[D0A19017CE354E62883A1404058DA667]]></AD_AUXILIARINPUT_ID>
+<!--D0A19017CE354E62883A1404058DA667-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--D0A19017CE354E62883A1404058DA667-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--D0A19017CE354E62883A1404058DA667-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--D0A19017CE354E62883A1404058DA667-->  <AD_TAB_ID><![CDATA[0F76B56EB2874C729ABE1665D5853E9D]]></AD_TAB_ID>
+<!--D0A19017CE354E62883A1404058DA667-->  <NAME><![CDATA[HeaderStatus]]></NAME>
+<!--D0A19017CE354E62883A1404058DA667-->  <CODE><![CDATA[@SQL=SELECT DOCSTATUS FROM M_INOUT WHERE M_INOUT_ID = @M_INOUT_ID@]]></CODE>
+<!--D0A19017CE354E62883A1404058DA667-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--D0A19017CE354E62883A1404058DA667--></AD_AUXILIARINPUT>
+
 <!--D0DC4F3EC11B4F6D9457EF08B5AF54C5--><AD_AUXILIARINPUT>
 <!--D0DC4F3EC11B4F6D9457EF08B5AF54C5-->  <AD_AUXILIARINPUT_ID><![CDATA[D0DC4F3EC11B4F6D9457EF08B5AF54C5]]></AD_AUXILIARINPUT_ID>
 <!--D0DC4F3EC11B4F6D9457EF08B5AF54C5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Fri Oct 24 10:46:29 2014 +0200
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Fri Oct 24 12:32:46 2014 +0200
@@ -221688,6 +221688,7 @@
 <!--00568254CB678733E050007F01000513-->  <ISPARENT><![CDATA[Y]]></ISPARENT>
 <!--00568254CB678733E050007F01000513-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--00568254CB678733E050007F01000513-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--00568254CB678733E050007F01000513-->  <READONLYLOGIC><![CDATA[@HeaderStatus@='CO']]></READONLYLOGIC>
 <!--00568254CB678733E050007F01000513-->  <ISIDENTIFIER><![CDATA[Y]]></ISIDENTIFIER>
 <!--00568254CB678733E050007F01000513-->  <SEQNO><![CDATA[90]]></SEQNO>
 <!--00568254CB678733E050007F01000513-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -221758,7 +221759,7 @@
 <!--00568254CB698733E050007F01000513-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--00568254CB698733E050007F01000513-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--00568254CB698733E050007F01000513-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--00568254CB698733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y']]></READONLYLOGIC>
+<!--00568254CB698733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y' | @HeaderStatus@='CO']]></READONLYLOGIC>
 <!--00568254CB698733E050007F01000513-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--00568254CB698733E050007F01000513-->  <SEQNO><![CDATA[110]]></SEQNO>
 <!--00568254CB698733E050007F01000513-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -221792,7 +221793,7 @@
 <!--00568254CB6B8733E050007F01000513-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--00568254CB6B8733E050007F01000513-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--00568254CB6B8733E050007F01000513-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--00568254CB6B8733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y'|(@c_invoiceline_id@!null&@c_invoiceline_id@!'')]]></READONLYLOGIC>
+<!--00568254CB6B8733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y'|(@c_invoiceline_id@!null&@c_invoiceline_id@!'') | @HeaderStatus@='CO']]></READONLYLOGIC>
 <!--00568254CB6B8733E050007F01000513-->  <ISIDENTIFIER><![CDATA[Y]]></ISIDENTIFIER>
 <!--00568254CB6B8733E050007F01000513-->  <SEQNO><![CDATA[130]]></SEQNO>
 <!--00568254CB6B8733E050007F01000513-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -221828,7 +221829,7 @@
 <!--00568254CB6C8733E050007F01000513-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--00568254CB6C8733E050007F01000513-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--00568254CB6C8733E050007F01000513-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--00568254CB6C8733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y']]></READONLYLOGIC>
+<!--00568254CB6C8733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y' | @HeaderStatus@='CO']]></READONLYLOGIC>
 <!--00568254CB6C8733E050007F01000513-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--00568254CB6C8733E050007F01000513-->  <SEQNO><![CDATA[140]]></SEQNO>
 <!--00568254CB6C8733E050007F01000513-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -221899,7 +221900,7 @@
 <!--00568254CB718733E050007F01000513-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--00568254CB718733E050007F01000513-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--00568254CB718733E050007F01000513-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--00568254CB718733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y'|(@c_invoiceline_id@!null&@c_invoiceline_id@!'')]]></READONLYLOGIC>
+<!--00568254CB718733E050007F01000513-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y'|(@c_invoiceline_id@!null&@c_invoiceline_id@!'') | @HeaderStatus@='CO']]></READONLYLOGIC>
 <!--00568254CB718733E050007F01000513-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--00568254CB718733E050007F01000513-->  <SEQNO><![CDATA[160]]></SEQNO>
 <!--00568254CB718733E050007F01000513-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -223572,7 +223573,7 @@
 <!--01DDF5AB6917DB9EE050007F01002DD8-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--01DDF5AB6917DB9EE050007F01002DD8-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
 <!--01DDF5AB6917DB9EE050007F01002DD8-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--01DDF5AB6917DB9EE050007F01002DD8-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y']]></READONLYLOGIC>
+<!--01DDF5AB6917DB9EE050007F01002DD8-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y' | @HeaderStatus@='CO']]></READONLYLOGIC>
 <!--01DDF5AB6917DB9EE050007F01002DD8-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--01DDF5AB6917DB9EE050007F01002DD8-->  <SEQNO><![CDATA[170]]></SEQNO>
 <!--01DDF5AB6917DB9EE050007F01002DD8-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
@@ -223752,7 +223753,7 @@
 <!--0227873A968BE6FBE050007F01005124-->  <ISPARENT><![CDATA[N]]></ISPARENT>
 <!--0227873A968BE6FBE050007F01005124-->  <ISMANDATORY><![CDATA[Y]]></ISMANDATORY>
 <!--0227873A968BE6FBE050007F01005124-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
-<!--0227873A968BE6FBE050007F01005124-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y']]></READONLYLOGIC>
+<!--0227873A968BE6FBE050007F01005124-->  <READONLYLOGIC><![CDATA[@ProcessedHeader@='Y' | @HeaderStatus@='CO']]></READONLYLOGIC>
 <!--0227873A968BE6FBE050007F01005124-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
 <!--0227873A968BE6FBE050007F01005124-->  <SEQNO><![CDATA[200]]></SEQNO>
 <!--0227873A968BE6FBE050007F01005124-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Fri Oct 24 10:46:29 2014 +0200
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Fri Oct 24 12:32:46 2014 +0200
@@ -176275,7 +176275,7 @@
 <!--00568254CC038733E050007F01000513-->  <AD_TAB_ID><![CDATA[0F76B56EB2874C729ABE1665D5853E9D]]></AD_TAB_ID>
 <!--00568254CC038733E050007F01000513-->  <AD_COLUMN_ID><![CDATA[00568254CB628733E050007F01000513]]></AD_COLUMN_ID>
 <!--00568254CC038733E050007F01000513-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
-<!--00568254CC038733E050007F01000513-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--00568254CC038733E050007F01000513-->  <ISDISPLAYED><![CDATA[N]]></ISDISPLAYED>
 <!--00568254CC038733E050007F01000513-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
 <!--00568254CC038733E050007F01000513-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--00568254CC038733E050007F01000513-->  <SEQNO><![CDATA[990]]></SEQNO>