src-db/database/sourcedata/AD_REF_TABLE.xml
changeset 7905 152032f5fa94
parent 7796 a17644acd015
child 11751 5240baa48ad6
--- a/src-db/database/sourcedata/AD_REF_TABLE.xml	Thu Jul 22 09:56:13 2010 +0530
+++ b/src-db/database/sourcedata/AD_REF_TABLE.xml	Thu Jul 22 09:59:28 2010 +0530
@@ -619,7 +619,7 @@
 <!--197-->  <AD_KEY><![CDATA[1151]]></AD_KEY>
 <!--197-->  <AD_DISPLAY><![CDATA[1152]]></AD_DISPLAY>
 <!--197-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
-<!--197-->  <WHERECLAUSE><![CDATA[M_Warehouse.AD_Client_ID=@#AD_Client_ID@]]></WHERECLAUSE>
+<!--197-->  <WHERECLAUSE><![CDATA[M_Warehouse.AD_Client_ID=@#AD_Client_ID@ AND (select ad.isactive from ad_org ad where ad.ad_org_id = M_Warehouse.AD_Org_ID) = 'Y']]></WHERECLAUSE>
 <!--197--></AD_REF_TABLE>
 
 <!--199--><AD_REF_TABLE>