core-jgi/db/ddlutils/data/AD_VAL_RULE.xml

170 lines
51 KiB
XML
Raw Normal View History

2006-12-29 11:24:45 +07:00
<?xml version='1.0' encoding='UTF-8'?>
<data>
2007-03-01 12:47:32 +07:00
<AD_VAL_RULE AD_VAL_RULE_ID="227" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-07-13 15:18:04.0" CREATEDBY="100" UPDATED="2005-08-23 18:30:21.0" UPDATEDBY="100" NAME="C_Project of BPartner" DESCRIPTION="Project of BP or SR or none" TYPE="S" CODE="C_Project.IsSummary='N' AND (C_Project.C_BPartner_ID IS NULL OR C_Project.C_BPartner_ID=@C_BPartner_ID@ OR C_Project.C_BPartnerSR_ID=@C_BPartner_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="235" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-08-23 17:56:20.0" CREATEDBY="100" UPDATED="2005-08-23 17:56:20.0" UPDATEDBY="100" NAME="C_Activity (Trx)" TYPE="S" CODE="C_Activity.IsActive='Y' AND C_Activity.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="236" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-08-23 17:58:02.0" CREATEDBY="100" UPDATED="2005-08-23 17:58:39.0" UPDATEDBY="100" NAME="C_Campaign (Trx)" TYPE="S" CODE="C_Campaign.IsActive='Y' AND C_Campaign.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="237" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-08-23 18:00:53.0" CREATEDBY="100" UPDATED="2005-08-23 18:00:53.0" UPDATEDBY="100" NAME="C_ElementValue of Element (Trx)" TYPE="S" CODE="C_ElementValue.C_Element_ID=@C_Element_ID@ AND C_ElementValue.IsActive='Y' AND C_ElementValue.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="238" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-08-23 18:04:23.0" CREATEDBY="100" UPDATED="2005-08-23 18:04:23.0" UPDATEDBY="100" NAME="C_SalesRegion (Trx)" TYPE="S" CODE="C_SalesRegion.IsActive='Y' AND C_SalesRegion.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="240" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-09-03 08:45:01.0" CREATEDBY="100" UPDATED="2005-09-03 11:06:47.0" UPDATEDBY="100" NAME="C_Invoice of Payment" DESCRIPTION="Completed, Closed" TYPE="S" CODE="C_Invoice.DocStatus IN ('CO', 'CL') AND C_Invoice.C_Currency_ID=@C_Currency_ID@ AND C_Invoice.C_BPartner_ID=@C_BPartner_ID@ AND C_Invoice.IsSOTrx='@IsReceipt@'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="256" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-11-20 16:14:13.0" CREATEDBY="100" UPDATED="2005-11-20 16:14:13.0" UPDATEDBY="100" NAME="AD_Table Client+Org Access" TYPE="S" CODE="AD_Table.AccessLevel=3 AND AD_Table.IsView='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="257" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-12-06 18:06:49.0" CREATEDBY="100" UPDATED="2005-12-06 18:06:49.0" UPDATEDBY="100" NAME="C_BPartner w Advertisement" TYPE="S" CODE="EXISTS (SELECT * FROM W_Advertisement a WHERE C_BPartner.C_BPartner_ID=a.C_BPartner_ID)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="258" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-12-12 15:08:40.0" CREATEDBY="100" UPDATED="2005-12-12 15:08:40.0" UPDATEDBY="100" NAME="C_ElementValue Default ET" DESCRIPTION="Default Accounting Schema - Record contains ElementType" TYPE="S" CODE="C_ElementValue.C_Element_ID IN &#xa;(SELECT C_Element_ID FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=@$C_AcctSchema_ID@ AND ElementType='@ElementType@')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="239" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-09-01 16:38:39.0" CREATEDBY="100" UPDATED="2005-09-01 16:38:39.0" UPDATEDBY="100" NAME="AD_Table with ASI" DESCRIPTION="Tables with updateable column Attribute Set Instance" TYPE="S" CODE="EXISTS (SELECT * FROM AD_Column c WHERE AD_Table.AD_Table_ID=c.AD_Table_ID AND c.ColumnName='M_AttributeSetInstance_ID' AND c.IsUpdateable='Y') AND AD_Table.IsView='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="159" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-02-07 17:32:23.0" CREATEDBY="0" UPDATED="2005-10-25 10:26:46.0" UPDATEDBY="100" NAME="AD_Tree Element Value" DESCRIPTION="Only Element Value items" TYPE="S" CODE="AD_Tree.TreeType='EV' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="183" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-11-28 23:48:37.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_ElementValue of Element" TYPE="S" CODE="C_ElementValue.C_Element_ID=@C_Element_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="164" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-06-03 22:52:23.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_User - Internal" DESCRIPTION="Employees &amp; Sales Reps" TYPE="S" CODE="EXISTS (SELECT * FROM C_BPartner bp WHERE AD_User.C_BPartner_ID=bp.C_BPartner_ID AND (bp.IsEmployee='Y' OR bp.IsSalesRep='Y'))" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="165" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-06-04 00:34:33.0" CREATEDBY="0" UPDATED="2006-03-26 18:46:24.0" UPDATEDBY="100" NAME="C_ProjectPhase (this) of Project" TYPE="S" CODE="C_ProjectPhase.C_Project_ID=@C_Project_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="166" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-06-04 00:36:08.0" CREATEDBY="0" UPDATED="2006-03-26 18:47:06.0" UPDATEDBY="100" NAME="C_ProjectTask (this) of ProjectPhase" TYPE="S" CODE="C_ProjectTask.C_ProjectPhase_ID=@C_ProjectPhase_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="171" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-08-09 22:57:44.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Phase of Project Type" TYPE="S" CODE="C_Phase.C_ProjectType_ID=@C_ProjectType_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="167" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-06-15 21:44:42.0" CREATEDBY="0" UPDATED="2005-07-24 13:46:12.0" UPDATEDBY="100" NAME="C_BPartner_Loc Ship To" TYPE="S" CODE="C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsShipTo='Y' AND C_BPartner_Location.IsActive='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="168" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-06-15 21:48:44.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_User BPartner Drop" TYPE="S" CODE="AD_User.C_BPartner_ID=@DropShip_BPartner_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="170" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-08-03 23:23:09.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Org of Remote Client" TYPE="S" CODE="AD_Org.AD_Client_ID=@Remote_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="176" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-09-04 16:19:03.0" CREATEDBY="0" UPDATED="2005-07-24 13:55:35.0" UPDATEDBY="100" NAME="C_Project - WorkOrder/Asset" TYPE="S" CODE="C_Project.IsSummary='N' AND C_Project.ProjectCategory IN ('W','A')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="177" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-09-04 16:23:48.0" CREATEDBY="0" UPDATED="2005-07-24 13:55:50.0" UPDATEDBY="100" NAME="C_Project - WorkOrder/Asset active" TYPE="S" CODE="C_Project.IsSummary='N' AND C_Project.ProjectCategory IN ('W','A') AND C_Project.Processed&lt;>'Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="178" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-09-04 16:27:17.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_InOut Receipts of Project" TYPE="S" CODE="(M_InOut.C_Project_ID IS NULL OR M_InOut.C_Project_ID=@C_Project_ID@) AND M_InOut.Processed='Y' AND M_InOut.IsSOTrx='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="179" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-10-04 10:32:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Order Open Quote" TYPE="S" CODE="C_Order.DocStatus='IP' AND C_DocType_ID IN &#xa;(SELECT C_DocType_ID FROM C_DocType WHERE DocSubTypeSO IN ('OB','ON'))" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="180" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-10-04 11:45:28.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Order Open" DESCRIPTION="InProgress, Draft" TYPE="S" CODE="C_Order.DocStatus IN ('IP', 'DR')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="181" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-10-04 11:46:31.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Invoice Open" DESCRIPTION="InProgress, Draft" TYPE="S" CODE="C_Invoice.DocStatus IN ('IP', 'DR')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="264" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-04-16 17:06:33.0" CREATEDBY="100" UPDATED="2006-04-22 10:12:43.0" UPDATEDBY="100" NAME="CM_CStage node of WebProject" TYPE="S" CODE="CM_CStage.CM_WebProject_ID=@CM_WebProject_ID@ AND CM_CStage.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="265" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-04-16 17:06:59.0" CREATEDBY="100" UPDATED="2006-04-22 10:14:07.0" UPDATEDBY="100" NAME="CM_Container node of WebProject" TYPE="S" CODE="CM_Container.CM_WebProject_ID=@CM_WebProject_ID@ AND CM_Container.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="266" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-04-22 10:05:31.0" CREATEDBY="100" UPDATED="2006-08-06 22:19:35.0" UPDATEDBY="100" NAME="CM_Template Node of WebProject" TYPE="S" CODE="CM_Template.CM_WebProject_ID=@CM_WebProject_ID@ AND CM_Template.IsSummary='N' AND CM_Template.IsInclude='N' AND CM_Template.IsValid='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="267" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-04-22 10:23:07.0" CREATEDBY="100" UPDATED="2006-04-22 10:23:07.0" UPDATEDBY="100" NAME="CM_Media node of Ad_Cat.WebProject" TYPE="S" CODE="CM_Media.IsSummary='N' AND EXISTS (SELECT * FROM CM_Ad_Cat c WHERE c.CM_Ad_Cat_ID=@CM_Ad_Cat_ID@ AND CM_Media.CM_WebProject_ID=c.CM_WebProject_ID)&#xa;" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="174" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-09-02 20:08:39.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_ProjectLine of Project" TYPE="S" CODE="C_ProjectLine.C_Project_ID=@C_Project_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="169" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-07-10 21:21:25.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="K_Category Value" TYPE="S" CODE="K_Category_ID=@K_Category_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="155" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-01-08 13:09:37.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Region of To_Country" TYPE="S" CODE="C_Region.C_Country_ID=@To_Country_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="100" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-05-21 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Column in AD_Table" DESCRIPTION="Table must be previously defined" TYPE="S" CODE="AD_Column.AD_Table_ID=@AD_Table_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="102" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-06-30 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType Journals" DESCRIPTION="Document Type Journal" TYPE="S" CODE="C_DocType.DocBaseType='GLJ'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="254" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-11-01 03:55:56.0" CREATEDBY="100" UPDATED="2005-11-01 03:55:56.0" UPDATEDBY="100" NAME="AD_Column Key" DESCRIPTION="Key Columns" TYPE="S" CODE="AD_Column.IsKey='Y' AND AD_Column.IsActive='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="104" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-07-01 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Org Security validation" DESCRIPTION="Not Summary - 0 - Organizations of the Client with user acces rights" TYPE="S" CODE="(AD_Org.IsSummary='N' OR AD_Org.AD_Org_ID=0)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="105" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-07-05 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_User Security validation" DESCRIPTION="Users with access to organization" TYPE="S" CODE="AD_User.AD_Client_ID=@AD_Client_ID@ AND AD_User.AD_Org_ID in (@User_Org@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="106" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-07-07 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_AcctSchema validation" DESCRIPTION="Validated AcctSchema (Client)" TYPE="S" CODE="C_AcctSchema.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="115" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-07-07 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Reference List or Table" DESCRIPTION="List or Table validation choices" TYPE="S" CODE="AD_Reference.ValidationType=CASE WHEN @AD_Reference_ID@ IN (17,28) THEN 'L' ELSE 'T' END" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="262" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-03-26 18:46:44.0" CREATEDBY="100" UPDATED="2006-03-26 18:48:29.0" UPDATEDBY="100" NAME="C_ProjectPhase (nq) of Project" DESCRIPTION="Not Qualified" TYPE="S" CODE="C_Project_ID=@C_Project_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="116" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-07-15 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Client Login" DESCRIPTION="Restrict to login client" TYPE="S" CODE="AD_Client.AD_Client_ID=@#AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="117" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-07-15 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Org Login" DESCRIPTION="Not Summary - Restrict to Login Organization" TYPE="S" CODE="AD_Org.AD_Org_ID=@#AD_Org_ID@ AND AD_Org.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="118" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-07-15 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="GL_Category for Manual Journals" DESCRIPTION="Manual Journal GL Category" TYPE="S" CODE="GL_Category.CategoryType='M'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="119" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-08-11 00:00:00.0" CREATEDBY="0" UPDATED="2005-07-24 13:46:03.0" UPDATEDBY="100" NAME="C_BPartner_Loc BillTo - Bill BPartner" TYPE="S" CODE="C_BPartner_Location.C_BPartner_ID=@Bill_BPartner_ID@ AND C_BPartner_Location.IsBillTo='Y' AND C_BPartner_Location.IsActive='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="120" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-08-11 00:00:00.0" CREATEDBY="0" UPDATED="2005-07-24 13:45:35.0" UPDATEDBY="100" NAME="C_BPartner_Loc - Drop Ship To" TYPE="S" CODE="C_BPartner_Location.C_BPartner_ID=@DropShip_BPartner_ID@ AND C_BPartner_Location.IsShipTo='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="121" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-10-11 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType GL Documents" DESCRIPTION="Document Type GL Document" TYPE="S" CODE="C_DocType.DocBaseType='GLD'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="122" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-10-11 00:00:00.0" CREATEDBY="0" UPDATED="2005-10-27 15:43:31.0" UPDATEDBY="100" NAME="C_ElementValue Def.AS Account_ID" DESCRIPTION="Default Accounting Schema" TYPE="S" CODE="C_ElementValue.C_Element_ID IN &#xa;(SELECT C_Element_ID FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=@$C_AcctSchema_ID@ AND ElementType='AC')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="123" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-12-23 08:46:33.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_User BPartner" TYPE="S" CODE="AD_User.C_BPartner_ID=@C_BPartner_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="124" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-01-30 13:53:50.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType AR/AP Invoices and Credit Memos" DESCRIPTION="Document Type AR/AP Invoice and Credit Memos" TYPE="S" CODE="C_DocType.DocBaseType IN ('ARI', 'API','ARC','APC') AND C_DocType.IsSOTrx='@IsSOTrx@'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="125" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-01-30 13:55:28.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType Material Shipments/Receipts" DESCRIPTION="Document Type Material Shipments and Receipts" TYPE="S" CODE="C_DocType.DocBaseType IN ('MMR', 'MMS') AND C_DocType.IsSOTrx='@IsSOTrx@'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="126" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-01-30 14:35:37.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType AR Pro Forma Invoices" DESCRIPTION="Document Type AR Pro Forma Invoice" TYPE="S" CODE="C_DocType.DocBaseType='ARF'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="127" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-02-04 11:58:58.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_Locator of Warehouse" TYPE="S" CODE="M_Locator.M_Warehouse_ID=@M_Warehouse_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="128" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-02-04 12:16:56.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Process Reports" TYPE="S" CODE="AD_Process.IsReport='Y' AND AD_Process.JasperReport IS NULL" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="129" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-02-12 17:15:22.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Client Trx Security validation" TYPE="S" CODE="AD_Client.AD_Client_ID &lt;> 0" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="130" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-02-12 17:16:45.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Org Trx Security validation" DESCRIPTION="Not Summary - Not 0" TYPE="S" CODE="AD_Org.AD_Org_ID &lt;> 0 AND AD_Org.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="131" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-05-10 18:41:17.0" CREATEDBY="0" UPDATED="2005-07-24 13:45:27.0" UPDATEDBY="100" NAME="C_BPartner_Loc" TYPE="S" CODE="C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="132" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-05-22 15:28:02.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_PriceList Base" DESCRIPTION="Base Pricelists need to have same currency" TYPE="S" CODE="M_PriceList.C_Currency_ID=@C_Currency_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="133" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-05-23 21:19:48.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType PO or SO" DESCRIPTION="Document Tpe for orders" TYPE="S" CODE="C_DocType.DocBaseType IN ('SOO', 'POO') AND C_DocType.IsSOTrx='@IsSOTrx@'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="134" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-05-25 17:05:02.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Order SO to be invoiced" DESCRIPTION="Ordered &lt;> Invoiced" TYPE="S" CODE="DocStatus NOT IN ('DR','IP') AND EXISTS (SELECT * FROM C_OrderLine WHERE C_Order.C_Order_ID=C_OrderLine.C_Order_ID AND QtyOrdered &lt;> QtyInvoiced) AND IsSOTrx='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="270" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2007-02-27 00:00:00.0" CREATEDBY="0" UPDATED="2007-02-27 00:00:00.0" UPDATEDBY="0" NAME="AD_Process Jasper Reports" TYPE="S" CODE="AD_Process.JasperReport IS NOT NULL" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="252" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-25 10:56:12.0" CREATEDBY="100" UPDATED="2005-10-27 15:45:05.0" UPDATEDBY="100" NAME="C_ElementValue AS Account_ID (active)" DESCRIPTION="Selected Accounting Schema" TYPE="S" CODE="EXISTS (SELECT * FROM C_AcctSchema_Element ae WHERE C_ElementValue.C_Element_ID=ae.C_Element_ID AND ae.ElementType='AC' AND ae.C_AcctSchema_ID=@C_AcctSchema_ID@) AND C_ElementValue.IsActive='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="263" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-03-26 18:47:31.0" CREATEDBY="100" UPDATED="2006-03-26 18:47:48.0" UPDATEDBY="100" NAME="C_ProjectTask (nq) of ProjectPhase" DESCRIPTION="Not qualified" TYPE="S" CODE="C_ProjectPhase_ID=@C_ProjectPhase_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="223" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-05-15 16:15:58.0" CREATEDBY="100" UPDATED="2005-05-15 16:15:58.0" UPDATEDBY="100" NAME="M_ProductOperation of Product" TYPE="S" CODE="M_ProductOperation.M_Product_ID=@M_Product_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="224" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-05-15 16:29:19.0" CREATEDBY="100" UPDATED="2005-05-15 16:29:19.0" UPDATEDBY="100" NAME="M_BOMAlternative of Product" TYPE="S" CODE="M_BOMAlternative.M_Product_ID=@M_Product_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="225" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-05-15 16:33:20.0" CREATEDBY="100" UPDATED="2005-05-15 16:33:20.0" UPDATEDBY="100" NAME="M_ChangeNotice of BOM Component" TYPE="S" CODE="EXISTS (SELECT * FROM M_BOM b WHERE b.M_Product_ID=@M_ProductBOM_ID@ AND b.M_ChangeNotice_ID=M_ChangeNotice.M_ChangeNotice_ID)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="246" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-23 18:40:47.0" CREATEDBY="100" UPDATED="2005-10-25 10:27:25.0" UPDATEDBY="100" NAME="AD_Tree BPartner" TYPE="S" CODE="AD_Tree.TreeType='BP' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="244" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-23 18:19:27.0" CREATEDBY="100" UPDATED="2006-04-17 10:57:59.0" UPDATEDBY="100" NAME="AD_Tree Element Value Complete" DESCRIPTION="Only Element Value items" TYPE="S" CODE="AD_Tree.TreeType IN ('EV','U1','U2') AND AD_Tree.IsAllNodes='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="245" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-23 18:40:22.0" CREATEDBY="100" UPDATED="2005-10-25 10:27:14.0" UPDATEDBY="100" NAME="AD_Tree Activity" TYPE="S" CODE="AD_Tree.TreeType='AY' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="247" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-23 18:42:09.0" CREATEDBY="100" UPDATED="2005-10-25 10:28:02.0" UPDATEDBY="100" NAME="AD_Tree Product" TYPE="S" CODE="AD_Tree.TreeType='PR' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="163" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-05-08 06:37:08.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Tab in Window" TYPE="S" CODE="AD_Tab.AD_Window_ID=@AD_Window_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="162" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-03-30 23:04:18.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="All_Payment Rule - Check/DirectDeposit" TYPE="S" CODE="AD_Ref_List.Value IN ('S','T')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="138" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-08-06 21:47:40.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Accounts User1" DESCRIPTION="based on C_AcctSchema_ID" TYPE="S" CODE="EXISTS (SELECT * FROM C_AcctSchema_Element ae WHERE C_ElementValue.C_Element_ID=ae.C_Element_ID AND ae.ElementType='U1' AND ae.C_AcctSchema_ID=@C_AcctSchema_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="139" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-08-06 21:47:54.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Accounts User2" DESCRIPTION="based on C_AcctSchema_ID" TYPE="S" CODE="EXISTS (SELECT * FROM C_AcctSchema_Element ae WHERE C_ElementValue.C_Element_ID=ae.C_Element_ID AND ae.ElementType='U2' AND ae.C_AcctSchema_ID=@C_AcctSchema_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="140" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-09-04 13:52:24.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Workflow_Nodes within current Workflow" TYPE="S" CODE="AD_WF_Node.AD_WorkFlow_ID=@AD_Workflow_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="141" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-09-20 21:55:51.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Table Import Tables" TYPE="S" CODE="AD_Table.TableName LIKE 'I%'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="142" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-01-01 18:19:36.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="No Sales Transactions" TYPE="S" CODE="IsSOTrx='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="143" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-01-01 18:20:19.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="Sales Transactions" TYPE="S" CODE="IsSOTrx='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="184" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-12-06 09:28:53.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_Lot of AttributeSetInstance" TYPE="S" CODE="M_Lot.M_Product_ID IN &#xa;(SELECT M_Product_ID FROM M_Product WHERE M_AttributeSet_ID=@M_AttributeSet_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="185" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-01-02 19:38:15.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_WF_Block of Workflow" TYPE="S" CODE="AD_WF_Block.AD_Workflow_ID=@AD_Workflow_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="186" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-01-02 20:09:08.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Process_Para of AD_Process" TYPE="S" CODE="AD_Process_Para.AD_Process_ID=@AD_Process_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="187" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-01-16 23:49:07.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Order Closed" TYPE="S" CODE="C_Order.DocStatus='CL'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="190" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-03-06 02:10:11.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_InOutLine of M_InOut" TYPE="S" CODE="M_InOutLine.M_InOut_ID=@M_InOut_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="192" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-03-18 15:59:32.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_BPartner Bill" DESCRIPTION="Ship BP - or - all if not SO - or - Related BP" TYPE="S" CODE="C_BPartner.IsSummary='N' AND (C_BPartner.C_BPartner_ID=@C_BPartner_ID@ OR 'N'='@IsSOTrx@'&#xa;OR EXISTS (SELECT * FROM C_BP_Relation r WHERE C_BPartner.C_BPartner_ID=r.C_BPartnerRelation_ID &#xa;AND r.C_BPartner_ID=@C_BPartner_ID@ AND r.IsBillTo='Y'))" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="193" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-03-23 22:20:59.0" CREATEDBY="0" UPDATED="2005-07-24 13:44:49.0" UPDATEDBY="100" NAME="C_BPartner Bill Proxy's" DESCRIPTION="All BPartner who are Proxy's" TYPE="S" CODE="C_BPartner.IsSummary='N' AND EXISTS (SELECT * FROM C_BP_Relation r WHERE C_BPartner.C_BPartner_ID=r.C_BPartnerRelation_ID)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="198" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-04-17 11:27:58.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Year of Calendar" TYPE="S" CODE="C_Year.C_Calendar_ID=@C_Calendar_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="197" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-04-10 17:50:33.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Workflow Process" TYPE="S" CODE="AD_Workflow.AD_Table_ID IS NOT NULL" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="199" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-04-17 11:29:49.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Period of Year" TYPE="S" CODE="C_Period.C_Year_ID=@C_Year_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="201" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-05-15 18:36:56.0" CREATEDBY="0" UPDATED="2005-05-29 00:45:00.0" UPDATEDBY="100" NAME="C_DocType Movement" TYPE="S" CODE="C_DocType.DocBaseType='MMM'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="268" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-10-28 00:00:00.0" CREATEDBY="0" UPDATED="2006-10-28 00:00:00.0" UPDATEDBY="0" NAME="All_Payment Rule - Check/DirectDebit/Deposit" TYPE="S" CODE="AD_Ref_List.Value IN ('S','T','D')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="269" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-10-28 00:00:00.0" CREATEDBY="0" UPDATED="2006-10-28 00:00:00.0" UPDATEDBY="0" NAME="C_BP_BankAccount of BPartner" TYPE="S" CODE="C_BP_BankAccount.C_BPartner_ID=@C_BPartner_ID@" ENTITYTYPE="D" />
2006-12-29 11:24:45 +07:00
<AD_VAL_RULE AD_VAL_RULE_ID="135" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-05-25 17:10:11.0" CREATEDBY="0" UPDATED="2005-07-24 13:46:30.0" UPDATEDBY="100" NAME="C_BPartner w SO to invoice" DESCRIPTION="BPartners with invoices to be invoiced" TYPE="S" CODE="C_BPartner.IsSummary='N' AND EXISTS (SELECT * FROM C_Order o INNER JOIN C_OrderLine l ON (o.C_Order_ID=l.C_Order_ID)&#xa;WHERE C_BPartner.C_BPartner_ID=o.C_BPartner_ID AND o.DocStatus NOT IN ('DR','IP') AND l.QtyOrdered &lt;> l.QtyInvoiced AND o.IsSOTrx='Y')&#xa;" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="136" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-07-29 13:06:23.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Find Column" DESCRIPTION="Columns of Table" TYPE="S" CODE="AD_Column.AD_Table_ID=@Find_Table_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="137" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-08-06 21:46:47.0" CREATEDBY="0" UPDATED="2005-10-27 15:41:14.0" UPDATEDBY="100" NAME="C_ElementValue AS Account_ID" DESCRIPTION="Account based on AcctSchema" TYPE="S" CODE="EXISTS (SELECT * FROM C_AcctSchema_Element ae WHERE C_ElementValue.C_Element_ID=ae.C_Element_ID AND ae.ElementType='AC' AND ae.C_AcctSchema_ID=@C_AcctSchema_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="202" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-05-09 21:59:13.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Org of Client (excl 0)" DESCRIPTION="All not 0" TYPE="S" CODE="AD_Org.AD_Client_ID=@AD_Client_ID@ AND AD_Org.AD_Org_ID&lt;>0" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="248" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-23 18:42:32.0" CREATEDBY="100" UPDATED="2005-10-25 10:28:13.0" UPDATEDBY="100" NAME="AD_Tree Project" TYPE="S" CODE="AD_Tree.TreeType='PJ' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="249" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-23 18:43:01.0" CREATEDBY="100" UPDATED="2005-10-25 10:28:23.0" UPDATEDBY="100" NAME="AD_Tree Sales Region" TYPE="S" CODE="AD_Tree.TreeType='SR' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="250" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-10-23 18:43:26.0" CREATEDBY="100" UPDATED="2005-10-25 10:27:36.0" UPDATEDBY="100" NAME="AD_Tree Campaign" TYPE="S" CODE="AD_Tree.TreeType='MC' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="253" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-11-01 01:05:35.0" CREATEDBY="100" UPDATED="2005-11-01 01:06:02.0" UPDATEDBY="100" NAME="C_ElementValue AS/ET" DESCRIPTION="Current Accounting Schema - Record contains ElementType" TYPE="S" CODE="C_ElementValue.C_Element_ID IN &#xa;(SELECT C_Element_ID FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=@C_AcctSchema_ID@ AND ElementType='@ElementType@')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="255" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-11-01 08:30:15.0" CREATEDBY="100" UPDATED="2005-11-01 08:30:15.0" UPDATEDBY="100" NAME="C_SubAcct of Account" TYPE="S" CODE="C_SubAcct.C_ElementValue_ID=@Account_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="260" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-01-15 13:19:02.0" CREATEDBY="100" UPDATED="2006-01-15 13:19:02.0" UPDATEDBY="100" NAME="R_Status of Category" TYPE="S" CODE="R_StatusCategory_ID=@R_StatusCategory_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="218" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-12-02 14:36:56.0" CREATEDBY="0" UPDATED="2005-05-22 11:36:37.0" UPDATEDBY="100" NAME="C_Order in Payment" DESCRIPTION="Waiting Payment or Standard Order with ininvoiced lines" TYPE="S" ENTITYTYPE="D">
<CODE><![CDATA[(C_Order.DocStatus='WP' OR (C_Order.DocStatus='CO' AND EXISTS (SELECT * FROM C_DocType dt WHERE C_Order.C_DocType_ID=dt.C_DocType_ID AND dt.DocSubTypeSO='SO') AND EXISTS (SELECT * FROM C_OrderLine ol WHERE C_Order.C_Order_ID=ol.C_Order_ID AND ol.QtyInvoiced<>ol.QtyOrdered)))]]></CODE>
</AD_VAL_RULE>
<AD_VAL_RULE AD_VAL_RULE_ID="221" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-04-21 22:38:21.0" CREATEDBY="100" UPDATED="2005-10-25 10:27:48.0" UPDATEDBY="100" NAME="AD_Tree Org" DESCRIPTION="Only org items" TYPE="S" CODE="AD_Tree.TreeType='OO' AND AD_Tree.AD_Client_ID=@AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="259" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-12-15 18:34:28.0" CREATEDBY="100" UPDATED="2005-12-15 18:34:35.0" UPDATEDBY="100" NAME="C_DocType Requisition" TYPE="S" CODE="C_DocType.DocBaseType = 'POR'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="261" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2006-01-21 17:54:39.0" CREATEDBY="100" UPDATED="2006-01-21 17:54:39.0" UPDATEDBY="100" NAME="R_Status of Request Type" TYPE="S" CODE="EXISTS (SELECT * FROM R_RequestType rt &#xa;INNER JOIN R_StatusCategory sc ON (rt.R_StatusCategory_ID=sc.R_StatusCategory_ID)&#xa;WHERE R_Status.R_StatusCategory_ID=sc.R_StatusCategory_ID&#xa;AND rt.R_RequestType_ID=@R_RequestType_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="172" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-08-16 11:44:26.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType Orders" DESCRIPTION="Document Tpe for SO+PO " TYPE="S" CODE="C_DocType.DocBaseType IN ('SOO', 'POO')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="173" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-08-16 11:45:41.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType Invoices and Credit Memos" DESCRIPTION="Document Type AR/AP Invoice and Credit Memos" TYPE="S" CODE="C_DocType.DocBaseType IN ('ARI', 'API','ARC','APC')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="175" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-09-02 21:50:30.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_ProjectLine of Project not Issued" TYPE="S" CODE="C_ProjectLine.C_Project_ID=@C_Project_ID@ AND C_ProjectLine.C_ProjectIssue_ID IS NULL" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="182" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-10-07 17:33:35.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_LabelPrinterFunction of LabelPrinter" TYPE="S" CODE="AD_LabelPrinterFunction.AD_LabelPrinter_ID=@AD_LabelPrinter_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="144" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-01-09 22:08:38.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Payment Not Reconciled" TYPE="S" CODE="C_Payment.IsReconciled='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="145" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-01-13 19:42:01.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Invoice of C_BPartner" TYPE="S" CODE="C_Invoice.C_BPartner_ID=@C_BPartner_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="146" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-02-01 13:49:33.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Invoice NotPaid" TYPE="S" CODE="C_Invoice.IsPaid&lt;>'Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="147" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-03-28 22:18:56.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Order of C_BPartner" TYPE="S" CODE="C_Order.C_BPartner_ID=@C_BPartner_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="148" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-05-09 21:59:13.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Org of Client (incl 0)" DESCRIPTION="All and 0" TYPE="S" CODE="(AD_Org.AD_Client_ID=@AD_Client_ID@ OR AD_Org.AD_Org_ID=0)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="149" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-05-15 18:36:56.0" CREATEDBY="0" UPDATED="2005-05-29 00:45:18.0" UPDATEDBY="100" NAME="C_DocType Payments/Receipts" TYPE="S" CODE="C_DocType.DocBaseType IN ('ARR', 'APP')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="150" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-12-18 23:01:59.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Tree Menu" DESCRIPTION="Only menu items" TYPE="S" CODE="AD_Tree.TreeType='MM'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="151" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2001-12-28 22:44:52.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_DiscountSchema only PriceList" TYPE="S" CODE="M_DiscountSchema.DiscountType='P'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="152" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2002-01-29 19:45:57.0" CREATEDBY="0" UPDATED="2005-10-11 13:55:31.0" UPDATEDBY="100" NAME="C_Payment not in BankStatement" TYPE="S" ENTITYTYPE="D">
<CODE><![CDATA[NOT EXISTS (SELECT * FROM C_BankStatementLine bsl INNER JOIN C_BankStatement bs ON (bsl.C_BankStatement_ID=bs.C_BankStatement_ID) WHERE bsl.C_Payment_ID=C_Payment.C_Payment_ID AND bs.DocStatus<>'VO') AND C_Payment.DocStatus IN ('CO','CL','RE') AND C_Payment.PayAmt<>0 AND C_Payment.IsReconciled='N' AND C_Payment.C_BankAccount_ID=@C_BankAccount_ID@]]></CODE>
</AD_VAL_RULE>
<AD_VAL_RULE AD_VAL_RULE_ID="153" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2002-08-10 16:38:46.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Region of Country" TYPE="S" CODE="C_Region.C_Country_ID=@C_Country_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="154" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2002-08-24 16:21:07.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_PrintGraph of AD_PrintFormat_ID" TYPE="S" CODE="AD_PrintGraph.AD_PrintFormat_ID=@AD_PrintFormat_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="158" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-01-25 13:40:29.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Role of Client" TYPE="S" CODE="AD_Role.AD_Client_ID=@#AD_Client_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="156" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-01-11 01:40:18.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="R_Request Processed" DESCRIPTION="Processed Requests" TYPE="S" CODE="R_Request.Processed='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="157" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-01-16 16:32:06.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="PA_ReportLine of ReportLineSet" TYPE="S" CODE="PA_ReportLine.PA_ReportLineSet_ID=@PA_ReportLineSet_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="160" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-03-13 18:01:43.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="PA_ReportColumn of ReportColumnSet" TYPE="S" CODE="PA_ReportColumn.PA_ReportColumnSet_ID=@PA_ReportColumnSet_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="161" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-03-13 21:53:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="All_Payment Rule - no Cash" TYPE="S" CODE="AD_Ref_List.Value &lt;> 'B'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="203" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-10-04 11:45:28.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_OrderLine of Order" TYPE="S" CODE="C_OrderLine.C_Order_ID=@C_Order_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="205" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-07-07 22:16:46.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_DiscountSchema Type" TYPE="S" CODE="(('@IsSOTrx@'='N' AND Value='P') OR ('@IsSOTrx@'='Y' AND Value&lt;>'P'))" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="206" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-05-23 21:19:48.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType PO " DESCRIPTION="Document Tpe for purchase orders" TYPE="S" CODE="C_DocType.DocBaseType='POO'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="188" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-02-29 14:11:31.0" CREATEDBY="0" UPDATED="2005-07-24 13:45:47.0" UPDATEDBY="100" NAME="C_BPartner_Loc - Relation" TYPE="S" CODE="C_BPartner_Location.C_BPartner_ID=@C_BPartnerRelation_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="189" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-02-29 14:43:20.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="M_Warehouse Org" TYPE="S" CODE="M_Warehouse.AD_Org_ID=@AD_Org_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="191" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-03-10 22:32:37.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_User BPartner Bill" TYPE="S" CODE="AD_User.C_BPartner_ID=@Bill_BPartner_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="195" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-04-07 17:13:39.0" CREATEDBY="0" UPDATED="2005-07-24 13:45:00.0" UPDATEDBY="100" NAME="C_BPartner Linked to an Org" TYPE="S" CODE="C_BPartner.IsSummary='N' AND C_BPartner.AD_OrgBP_ID&lt;>0" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="196" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-04-08 14:46:16.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Org Not Linked" DESCRIPTION="Not Summary - Not 0 - Not linked to BP" TYPE="S" CODE="AD_Org.AD_Org_ID &lt;> 0 AND AD_Org.IsSummary='N' &#xa;AND NOT EXISTS (SELECT * FROM C_BPartner bp WHERE AD_Org.AD_Org_ID=bp.AD_OrgBP_ID)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="200" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-04-26 21:46:28.0" CREATEDBY="0" UPDATED="2005-07-24 13:45:55.0" UPDATEDBY="100" NAME="C_BPartner_Loc BillTo" TYPE="S" CODE="C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@ AND C_BPartner_Location.IsBillTo='Y' AND C_BPartner_Location.IsActive='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="207" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-05-23 21:19:48.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType SO" DESCRIPTION="Document Tpe for sales orders" TYPE="S" CODE="C_DocType.DocBaseType='SOO'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="208" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-01-30 14:35:37.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType POS" DESCRIPTION="Document Type for POS" TYPE="S" CODE="C_DocType.DocSubTypeSO='WR'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="211" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-08-11 18:17:04.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Tab with Table" TYPE="S" CODE="AD_Tab.AD_Table_ID=@AD_Table_ID@" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="213" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-09-03 15:18:28.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Table with Posted" TYPE="S" CODE="EXISTS (SELECT * FROM AD_Column c WHERE AD_Table.AD_Table_ID=c.AD_Table_ID AND c.IsActive='Y' AND c.ColumnName='Posted') AND AD_Table.IsView='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="214" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-09-27 20:53:58.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="AD_Column in Import Table" DESCRIPTION="Table must be previously defined" TYPE="S" CODE="AD_Column.AD_Table_ID=@AD_Table_ID@ AND AD_Column.IsKey='N' AND AD_Column.ColumnName NOT IN ('I_IsImported', 'I_ErrorMsg')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="215" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-11-07 12:43:27.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Period Open" TYPE="S" CODE="EXISTS (SELECT * FROM C_PeriodControl pc WHERE C_Period.C_Period_ID=pc.C_Period_ID AND pc.PeriodStatus='O')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="216" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-11-27 23:35:49.0" CREATEDBY="0" UPDATED="2005-07-24 13:52:50.0" UPDATEDBY="100" NAME="M_Product To UOM" DESCRIPTION="Product with UOM Relation" TYPE="S" CODE="M_Product.IsSummary='N' AND EXISTS (SELECT * FROM M_Product pp WHERE pp.M_Product_ID=@M_Product_ID@ AND EXISTS (SELECT * FROM C_UOM_Conversion c WHERE M_Product.C_UOM_ID=c.C_UOM_To_ID AND pp.C_UOM_ID=c.C_UOM_ID) )" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="210" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-07-22 20:02:03.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_UOM Product Options" TYPE="S" ENTITYTYPE="D">
<CODE><![CDATA[(EXISTS (SELECT * FROM C_UOM uu WHERE C_UOM.C_UOM_ID=uu.C_UOM_ID AND IsDefault='Y' AND @M_Product_ID@=0)
OR EXISTS (SELECT * FROM M_Product p WHERE C_UOM.C_UOM_ID=p.C_UOM_ID AND @M_Product_ID@=p.M_Product_ID)
OR EXISTS (SELECT * FROM M_Product p INNER JOIN C_UOM_Conversion c ON (p.C_UOM_ID=c.C_UOM_ID AND p.M_Product_ID=c.M_Product_ID) WHERE C_UOM.C_UOM_ID=c.C_UOM_TO_ID AND @M_Product_ID@=p.M_Product_ID))]]></CODE>
</AD_VAL_RULE>
<AD_VAL_RULE AD_VAL_RULE_ID="212" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2003-10-04 10:32:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Order Waiting Payment" TYPE="S" CODE="C_Order.DocStatus='WP'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="217" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2004-11-29 21:19:15.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_Period of Calendar" TYPE="S" CODE="EXISTS (SELECT * FROM C_Year y WHERE C_Period.C_Year_ID=y.C_Year_ID AND y.C_Calendar_ID=@C_Calendar_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="219" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-01-05 20:09:16.0" CREATEDBY="100" UPDATED="2005-01-05 20:09:16.0" UPDATEDBY="100" NAME="List - DocAction - Complete or Prepare" TYPE="S" CODE="AD_Ref_List.Value IN ('CO','PR')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="220" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-02-26 01:23:52.0" CREATEDBY="100" UPDATED="2005-02-26 11:41:24.0" UPDATEDBY="100" NAME="C_Invoice Complete" DESCRIPTION="Completed, Closed" TYPE="S" CODE="C_Invoice.DocStatus IN ('CO', 'CL')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="226" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-05-19 21:00:45.0" CREATEDBY="100" UPDATED="2005-05-19 21:00:45.0" UPDATEDBY="100" NAME="R_RequestType invoiced" TYPE="S" CODE="R_RequestType.IsInvoiced='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="229" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-07-21 13:31:01.0" CREATEDBY="100" UPDATED="2005-12-15 18:33:43.0" UPDATEDBY="100" NAME="C_DocType Replenish Report" DESCRIPTION="Document Type Replenishment" TYPE="S" CODE="C_DocType.DocBaseType='@ReplenishmentCreate@'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="230" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-07-24 13:47:14.0" CREATEDBY="100" UPDATED="2005-08-23 17:57:22.0" UPDATEDBY="100" NAME="C_BPartner (Trx)" TYPE="S" CODE="C_BPartner.IsActive='Y' AND C_BPartner.IsSummary='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="231" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-07-24 13:53:14.0" CREATEDBY="100" UPDATED="2005-08-23 18:05:34.0" UPDATEDBY="100" NAME="M_Product (Trx)" TYPE="S" CODE="M_Product.IsSummary='N' AND M_Product.IsActive='Y'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="232" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-07-24 14:02:12.0" CREATEDBY="100" UPDATED="2005-08-23 18:02:28.0" UPDATEDBY="100" NAME="C_Project (Trx)" TYPE="S" CODE="C_Project.IsSummary='N' AND C_Project.IsActive='Y' AND C_Project.Processed='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="233" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-07-28 12:44:59.0" CREATEDBY="100" UPDATED="2005-07-28 12:44:59.0" UPDATEDBY="100" NAME="M_InOut Receipts" TYPE="S" CODE="M_InOut.IsSOTrx='N'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="234" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-07-28 12:47:31.0" CREATEDBY="100" UPDATED="2005-07-28 12:47:31.0" UPDATEDBY="100" NAME="M_InOutLine Receipts" TYPE="S" CODE="EXISTS (SELECT * FROM M_InOut io WHERE M_InOutLine.M_InOut_ID=io.M_InOut_ID AND io.IsSOTrx='N')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="241" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-09-13 21:25:05.0" CREATEDBY="100" UPDATED="2005-09-13 21:25:05.0" UPDATEDBY="100" NAME="M_CostElements Manual" TYPE="S" CODE="(CostingMethod IS NULL OR CostingMethod='S')" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="242" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-09-13 21:30:50.0" CREATEDBY="100" UPDATED="2005-09-13 21:30:50.0" UPDATEDBY="100" NAME="C_AcctSchema CostingMethod" TYPE="S" CODE="AD_Ref_List.Value &lt;> 'x'" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="243" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-09-16 18:03:47.0" CREATEDBY="100" UPDATED="2005-09-16 18:18:22.0" UPDATEDBY="100" NAME="C_Job BPartner.IsEmployee" TYPE="S" CODE="C_Job.IsEmployee=(SELECT IsEmployee FROM C_BPartner WHERE C_BPartner_ID=@C_BPartner_ID@)" ENTITYTYPE="D" />
<AD_VAL_RULE AD_VAL_RULE_ID="204" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2000-01-30 13:55:28.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType Material Difference" DESCRIPTION="Document Type Material Shipments and Receipts for Split Differnce" TYPE="S" CODE="C_DocType.DocBaseType='@DocBaseType@'" ENTITYTYPE="D" />
2007-01-22 06:27:54 +07:00
<AD_VAL_RULE AD_VAL_RULE_ID="209" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="1999-06-30 00:00:00.0" CREATEDBY="0" UPDATED="2000-01-02 00:00:00.0" UPDATEDBY="0" NAME="C_DocType Material Inventory" DESCRIPTION="Document Type Physical Inventory" TYPE="S" CODE="C_DocType.DocBaseType='MMI'" ENTITYTYPE="D" />
2006-12-29 11:24:45 +07:00
<AD_VAL_RULE AD_VAL_RULE_ID="222" AD_CLIENT_ID="0" AD_ORG_ID="0" ISACTIVE="Y" CREATED="2005-04-25 01:47:50.0" CREATEDBY="100" UPDATED="2005-04-25 01:47:50.0" UPDATEDBY="100" NAME="M_CostElement Landed Costs" TYPE="S" CODE="M_CostElement.CostElementType='M' AND M_CostElement.CostingMethod IS NULL" ENTITYTYPE="D" />
</data>