src-db/database/sourcedata/AD_REF_TABLE.xml
changeset 7440 3b31299bcca2
parent 6874 2874fe456c25
child 7459 603b188fd15d
--- a/src-db/database/sourcedata/AD_REF_TABLE.xml	Fri May 28 10:47:48 2010 +0200
+++ b/src-db/database/sourcedata/AD_REF_TABLE.xml	Fri May 28 17:37:58 2010 +0530
@@ -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>