src-db/database/sourcedata/AD_REF_TABLE.xml
changeset 7655 31719985b651
parent 7624 7ac7b5fabf66
parent 7459 603b188fd15d
child 7796 a17644acd015
--- a/src-db/database/sourcedata/AD_REF_TABLE.xml	Tue Jun 08 18:43:16 2010 +0200
+++ b/src-db/database/sourcedata/AD_REF_TABLE.xml	Wed Jun 09 12:02:34 2010 +0200
@@ -1164,7 +1164,7 @@
 <!--22F546D49D3A48E1B2B4F50446A8DE58-->  <AD_KEY><![CDATA[1501]]></AD_KEY>
 <!--22F546D49D3A48E1B2B4F50446A8DE58-->  <AD_DISPLAY><![CDATA[1509]]></AD_DISPLAY>
 <!--22F546D49D3A48E1B2B4F50446A8DE58-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
-<!--22F546D49D3A48E1B2B4F50446A8DE58-->  <WHERECLAUSE><![CDATA[C_DocType.AD_Client_ID=@#AD_Client_ID@ AND @AD_Org_ID@ <> '0']]></WHERECLAUSE>
+<!--22F546D49D3A48E1B2B4F50446A8DE58-->  <WHERECLAUSE><![CDATA[C_DocType.AD_Client_ID=@#AD_Client_ID@ AND (@AD_Org_ID@ <> '0' OR COALESCE(@AD_Org_ID@,'-1')='-1')]]></WHERECLAUSE>
 <!--22F546D49D3A48E1B2B4F50446A8DE58-->  <ORDERBYCLAUSE><![CDATA[C_DocType.isdefault DESC, C_DocType.Name]]></ORDERBYCLAUSE>
 <!--22F546D49D3A48E1B2B4F50446A8DE58--></AD_REF_TABLE>
 
@@ -1192,6 +1192,17 @@
 <!--65447418FD4D428CA025AC9AF26ADA21-->  <ORDERBYCLAUSE><![CDATA[STARTDATE ASC]]></ORDERBYCLAUSE>
 <!--65447418FD4D428CA025AC9AF26ADA21--></AD_REF_TABLE>
 
+<!--66E310A87A844A51B8BAD2884E996CD6--><AD_REF_TABLE>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <AD_REFERENCE_ID><![CDATA[66E310A87A844A51B8BAD2884E996CD6]]></AD_REFERENCE_ID>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <AD_TABLE_ID><![CDATA[800022]]></AD_TABLE_ID>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <AD_KEY><![CDATA[800437]]></AD_KEY>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <AD_DISPLAY><![CDATA[800445]]></AD_DISPLAY>
+<!--66E310A87A844A51B8BAD2884E996CD6-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--66E310A87A844A51B8BAD2884E996CD6--></AD_REF_TABLE>
+
 <!--A19872A5A16149ECAD01E5E37CC0843A--><AD_REF_TABLE>
 <!--A19872A5A16149ECAD01E5E37CC0843A-->  <AD_REFERENCE_ID><![CDATA[A19872A5A16149ECAD01E5E37CC0843A]]></AD_REFERENCE_ID>
 <!--A19872A5A16149ECAD01E5E37CC0843A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>