Fixes Issue 25422 BPartner selector not working properly in Customer Statement
authorAtul Gaware <atul.gaware@openbravo.com>
Tue, 07 Jan 2014 16:06:23 +0530
changeset 21752 22fa2bad8818
parent 21751 d7f5fe16e748
child 21753 9405040d251c
Fixes Issue 25422 BPartner selector not working properly in Customer Statement
src-db/database/sourcedata/AD_VAL_RULE.xml
--- a/src-db/database/sourcedata/AD_VAL_RULE.xml	Wed Jan 08 10:42:48 2014 +0530
+++ b/src-db/database/sourcedata/AD_VAL_RULE.xml	Tue Jan 07 16:06:23 2014 +0530
@@ -1834,7 +1834,10 @@
 <!--95548E7077124EB7A83F85A000CB2350-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--95548E7077124EB7A83F85A000CB2350-->  <NAME><![CDATA[C_BPartnerCustomerAndInOrg]]></NAME>
 <!--95548E7077124EB7A83F85A000CB2350-->  <TYPE><![CDATA[S]]></TYPE>
-<!--95548E7077124EB7A83F85A000CB2350-->  <CODE><![CDATA[C_BPartner.iscustomer = 'Y']]></CODE>
+<!--95548E7077124EB7A83F85A000CB2350-->  <CODE><![CDATA[C_BPartner.iscustomer = 'Y' AND (
+(AD_ISORGINCLUDED(@AD_Org_ID@,C_BPartner.AD_Org_ID, @AD_Client_ID@) <> '-1') OR
+(AD_ISORGINCLUDED(C_BPartner.AD_Org_ID, @AD_Org_ID@, @AD_Client_ID@) <> '-1'))
+]]></CODE>
 <!--95548E7077124EB7A83F85A000CB2350-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--95548E7077124EB7A83F85A000CB2350--></AD_VAL_RULE>