Changed constraint conditions with postgres formatting, changed the order of foreign keys using NLS_LANGUAGE ENGLISH
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Fri, 14 Dec 2007 16:05:32 +0000
changeset 238 006d2d0fdea6
parent 237 fd48d0daf779
child 239 a30acae847e1
Changed constraint conditions with postgres formatting, changed the order of foreign keys using NLS_LANGUAGE ENGLISH
database/model/tables/AD_ATTACHMENT.xml
database/model/tables/AD_ATTRIBUTE.xml
database/model/tables/AD_CALLOUT.xml
database/model/tables/AD_CLIENT.xml
database/model/tables/AD_CLIENTINFO.xml
database/model/tables/AD_COLOR.xml
database/model/tables/AD_COLUMN.xml
database/model/tables/AD_DESKTOP.xml
database/model/tables/AD_DESKTOPWORKBENCH.xml
database/model/tables/AD_DESKTOP_TRL.xml
database/model/tables/AD_DEVELOPER.xml
database/model/tables/AD_ELEMENT.xml
database/model/tables/AD_ELEMENT_TRL.xml
database/model/tables/AD_ERROR.xml
database/model/tables/AD_FIELD.xml
database/model/tables/AD_FIELDGROUP.xml
database/model/tables/AD_FIELDGROUP_TRL.xml
database/model/tables/AD_FIELD_TRL.xml
database/model/tables/AD_FIND.xml
database/model/tables/AD_FORM.xml
database/model/tables/AD_FORM_ACCESS.xml
database/model/tables/AD_FORM_TRL.xml
database/model/tables/AD_IMAGE.xml
database/model/tables/AD_IMPFORMAT.xml
database/model/tables/AD_IMPFORMAT_ROW.xml
database/model/tables/AD_LANGUAGE.xml
database/model/tables/AD_MENU.xml
database/model/tables/AD_MENU_TRL.xml
database/model/tables/AD_MESSAGE.xml
database/model/tables/AD_MESSAGE_TRL.xml
database/model/tables/AD_MODEL_OBJECT.xml
database/model/tables/AD_MODEL_OBJECT_MAPPING.xml
database/model/tables/AD_NOTE.xml
database/model/tables/AD_ORG.xml
database/model/tables/AD_ORGINFO.xml
database/model/tables/AD_PINSTANCE.xml
database/model/tables/AD_PREFERENCE.xml
database/model/tables/AD_PRINTCOLOR.xml
database/model/tables/AD_PRINTFONT.xml
database/model/tables/AD_PRINTFORM.xml
database/model/tables/AD_PRINTFORMAT.xml
database/model/tables/AD_PRINTFORMATITEM.xml
database/model/tables/AD_PRINTFORMATITEM_TRL.xml
database/model/tables/AD_PRINTGRAPH.xml
database/model/tables/AD_PRINTPAPER.xml
database/model/tables/AD_PRINTTABLEFORMAT.xml
database/model/tables/AD_PROCESS.xml
database/model/tables/AD_PROCESS_ACCESS.xml
database/model/tables/AD_PROCESS_PARA.xml
database/model/tables/AD_PROCESS_PARA_TRL.xml
database/model/tables/AD_PROCESS_TRL.xml
database/model/tables/AD_REFERENCE.xml
database/model/tables/AD_REFERENCE_TRL.xml
database/model/tables/AD_REF_LIST.xml
database/model/tables/AD_REF_LIST_TRL.xml
database/model/tables/AD_REF_SEARCH.xml
database/model/tables/AD_REF_SEARCH_COLUMN.xml
database/model/tables/AD_REF_TABLE.xml
database/model/tables/AD_REPLICATION.xml
database/model/tables/AD_REPLICATIONSTRATEGY.xml
database/model/tables/AD_REPLICATIONTABLE.xml
database/model/tables/AD_REPLICATION_LOG.xml
database/model/tables/AD_REPLICATION_RUN.xml
database/model/tables/AD_REPORTVIEW.xml
database/model/tables/AD_REPORTVIEW_COL.xml
database/model/tables/AD_ROLE.xml
database/model/tables/AD_ROLE_ORGACCESS.xml
database/model/tables/AD_SEQUENCE.xml
database/model/tables/AD_SEQUENCE_AUDIT.xml
database/model/tables/AD_SEQUENCE_NO.xml
database/model/tables/AD_SYSTEM.xml
database/model/tables/AD_TAB.xml
database/model/tables/AD_TABLE.xml
database/model/tables/AD_TABLE_ACCESS.xml
database/model/tables/AD_TAB_TRL.xml
database/model/tables/AD_TASK.xml
database/model/tables/AD_TASKINSTANCE.xml
database/model/tables/AD_TASK_ACCESS.xml
database/model/tables/AD_TASK_TRL.xml
database/model/tables/AD_TEXTINTERFACES.xml
database/model/tables/AD_TEXTINTERFACES_TRL.xml
database/model/tables/AD_TREE.xml
database/model/tables/AD_TREEBAR.xml
database/model/tables/AD_TREENODE.xml
database/model/tables/AD_TREENODEBP.xml
database/model/tables/AD_TREENODEMM.xml
database/model/tables/AD_TREENODEPR.xml
database/model/tables/AD_USER.xml
database/model/tables/AD_USERDEF_FIELD.xml
database/model/tables/AD_USERDEF_TAB.xml
database/model/tables/AD_USERDEF_WIN.xml
database/model/tables/AD_USER_ROLES.xml
database/model/tables/AD_VAL_RULE.xml
database/model/tables/AD_WF_INSTANCE.xml
database/model/tables/AD_WF_NODE.xml
database/model/tables/AD_WF_NODENEXT.xml
database/model/tables/AD_WF_NODE_TRL.xml
database/model/tables/AD_WINDOW.xml
database/model/tables/AD_WINDOW_ACCESS.xml
database/model/tables/AD_WINDOW_TRL.xml
database/model/tables/AD_WORKBENCH.xml
database/model/tables/AD_WORKBENCHWINDOW.xml
database/model/tables/AD_WORKBENCH_TRL.xml
database/model/tables/AD_WORKFLOW.xml
database/model/tables/AD_WORKFLOW_ACCESS.xml
database/model/tables/AD_WORKFLOW_TRL.xml
database/model/tables/AT_COMMAND.xml
database/model/tables/AT_COMMAND_TRL.xml
database/model/tables/AT_LINE.xml
database/model/tables/AT_ROLLOGIN.xml
database/model/tables/AT_TEST.xml
database/model/tables/AT_TESTDOCUMENT.xml
database/model/tables/AT_TESTDOCUMENTLINE.xml
database/model/tables/A_AMORTIZATION.xml
database/model/tables/A_AMORTIZATIONLINE.xml
database/model/tables/A_ASSET.xml
database/model/tables/A_ASSET_ACCT.xml
database/model/tables/A_ASSET_ADDITION.xml
database/model/tables/A_ASSET_CHANGE.xml
database/model/tables/A_ASSET_CHANGE_AMT.xml
database/model/tables/A_ASSET_DELIVERY.xml
database/model/tables/A_ASSET_GROUP.xml
database/model/tables/A_ASSET_GROUP_ACCT.xml
database/model/tables/A_ASSET_RETIREMENT.xml
database/model/tables/A_ASSET_USE.xml
database/model/tables/A_DEPRECIATION.xml
database/model/tables/C_ACCTSCHEMA.xml
database/model/tables/C_ACCTSCHEMA_DEFAULT.xml
database/model/tables/C_ACCTSCHEMA_ELEMENT.xml
database/model/tables/C_ACCTSCHEMA_GL.xml
database/model/tables/C_ACCTSCHEMA_TABLE.xml
database/model/tables/C_ACTIVITY.xml
database/model/tables/C_APPROVAL.xml
database/model/tables/C_BANK.xml
database/model/tables/C_BANKACCOUNT.xml
database/model/tables/C_BANKACCOUNTDOC.xml
database/model/tables/C_BANKACCOUNT_ACCT.xml
database/model/tables/C_BANKSTATEMENT.xml
database/model/tables/C_BANKSTATEMENTLINE.xml
database/model/tables/C_BPARTNER.xml
database/model/tables/C_BPARTNER_LOCATION.xml
database/model/tables/C_BP_BANKACCOUNT.xml
database/model/tables/C_BP_CUSTOMER_ACCT.xml
database/model/tables/C_BP_EDI.xml
database/model/tables/C_BP_EMPLOYEE_ACCT.xml
database/model/tables/C_BP_GROUP.xml
database/model/tables/C_BP_GROUP_ACCT.xml
database/model/tables/C_BP_VENDOR_ACCT.xml
database/model/tables/C_BP_WITHHOLDING.xml
database/model/tables/C_BUDGET.xml
database/model/tables/C_BUDGETLINE.xml
database/model/tables/C_CALENDAR.xml
database/model/tables/C_CAMPAIGN.xml
database/model/tables/C_CASH.xml
database/model/tables/C_CASHBOOK.xml
database/model/tables/C_CASHBOOK_ACCT.xml
database/model/tables/C_CASHLINE.xml
database/model/tables/C_CHANNEL.xml
database/model/tables/C_CHARGE.xml
database/model/tables/C_CHARGE_ACCT.xml
database/model/tables/C_CITY.xml
database/model/tables/C_COMMISSION.xml
database/model/tables/C_COMMISSIONAMT.xml
database/model/tables/C_COMMISSIONDETAIL.xml
database/model/tables/C_COMMISSIONLINE.xml
database/model/tables/C_COMMISSIONRUN.xml
database/model/tables/C_CONVERSION_RATE.xml
database/model/tables/C_COUNTRY.xml
database/model/tables/C_COUNTRY_TRL.xml
database/model/tables/C_CURRENCY.xml
database/model/tables/C_CURRENCY_TRL.xml
database/model/tables/C_CYCLE.xml
database/model/tables/C_CYCLESTEP.xml
database/model/tables/C_DEBT_PAYMENT.xml
database/model/tables/C_DEBT_PAYMENT_BALANCING.xml
database/model/tables/C_DEBT_PAYMENT_BAL_REPLACE.xml
database/model/tables/C_DISCOUNT.xml
database/model/tables/C_DOCTYPE.xml
database/model/tables/C_DOCTYPE_TRL.xml
database/model/tables/C_DUNNING.xml
database/model/tables/C_DUNNINGLEVEL.xml
database/model/tables/C_DUNNINGLEVEL_TRL.xml
database/model/tables/C_DUNNINGRUN.xml
database/model/tables/C_DUNNINGRUNENTRY.xml
database/model/tables/C_ELEMENT.xml
database/model/tables/C_ELEMENTVALUE.xml
database/model/tables/C_ELEMENTVALUE_OPERAND.xml
database/model/tables/C_ELEMENTVALUE_TRL.xml
database/model/tables/C_EXTERNALPOS_CATEGORY.xml
database/model/tables/C_GLITEM.xml
database/model/tables/C_GLITEM_ACCT.xml
database/model/tables/C_GREETING.xml
database/model/tables/C_GREETING_TRL.xml
database/model/tables/C_INCOTERMS.xml
database/model/tables/C_INTERORG_ACCT.xml
database/model/tables/C_INVOICE.xml
database/model/tables/C_INVOICELINE.xml
database/model/tables/C_INVOICEPAYSCHEDULE.xml
database/model/tables/C_INVOICESCHEDULE.xml
database/model/tables/C_INVOICETAX.xml
database/model/tables/C_LOCATION.xml
database/model/tables/C_NATION.xml
database/model/tables/C_NONBUSINESSDAY.xml
database/model/tables/C_ORDER.xml
database/model/tables/C_ORDERLINE.xml
database/model/tables/C_ORDERTAX.xml
database/model/tables/C_PAYMENTTERM.xml
database/model/tables/C_PAYMENTTERMLINE.xml
database/model/tables/C_PAYMENTTERM_TRL.xml
database/model/tables/C_PAYSCHEDULE.xml
database/model/tables/C_PERIOD.xml
database/model/tables/C_PERIODCONTROL.xml
database/model/tables/C_PROJECT.xml
database/model/tables/C_PROJECTISSUE.xml
database/model/tables/C_PROJECTLINE.xml
database/model/tables/C_PROJECTPROPOSAL.xml
database/model/tables/C_PROJECTPROPOSALLINE.xml
database/model/tables/C_PROJECTPROPOSALTASK.xml
database/model/tables/C_PROJECT_ACCT.xml
database/model/tables/C_PROJECT_VENDOR.xml
database/model/tables/C_PROMISSORYFORMAT.xml
database/model/tables/C_REGION.xml
database/model/tables/C_REMITTANCE.xml
database/model/tables/C_REMITTANCE_TYPE.xml
database/model/tables/C_REVENUERECOGNITION.xml
database/model/tables/C_REVENUERECOGNITION_PLAN.xml
database/model/tables/C_REVENUERECOGNITION_RUN.xml
database/model/tables/C_SALARY_CATEGORY.xml
database/model/tables/C_SALESREGION.xml
database/model/tables/C_SERVICELEVEL.xml
database/model/tables/C_SERVICELEVELLINE.xml
database/model/tables/C_SETTLEMENT.xml
database/model/tables/C_TAX.xml
database/model/tables/C_TAXCATEGORY.xml
database/model/tables/C_TAXCATEGORY_TRL.xml
database/model/tables/C_TAX_ACCT.xml
database/model/tables/C_TAX_REPORT.xml
database/model/tables/C_TAX_TRL.xml
database/model/tables/C_UOM.xml
database/model/tables/C_UOM_CONVERSION.xml
database/model/tables/C_UOM_TRL.xml
database/model/tables/C_VALIDCOMBINATION.xml
database/model/tables/C_WITHHOLDING.xml
database/model/tables/C_WITHHOLDING_ACCT.xml
database/model/tables/C_YEAR.xml
database/model/tables/FACT_ACCT.xml
database/model/tables/FACT_ACCT_BALANCE.xml
database/model/tables/GL_BUDGET.xml
database/model/tables/GL_CATEGORY.xml
database/model/tables/GL_JOURNAL.xml
database/model/tables/GL_JOURNALBATCH.xml
database/model/tables/GL_JOURNALLINE.xml
database/model/tables/I_BANKSTATEMENT.xml
database/model/tables/I_BPARTNER.xml
database/model/tables/I_BUDGETLINE.xml
database/model/tables/I_ELEMENTVALUE.xml
database/model/tables/I_GLJOURNAL.xml
database/model/tables/I_INVENTORY.xml
database/model/tables/I_INVOICE.xml
database/model/tables/I_ORDER.xml
database/model/tables/I_PRODUCT.xml
database/model/tables/I_REPORTLINE.xml
database/model/tables/I_TAX.xml
database/model/tables/K_CATEGORY.xml
database/model/tables/K_CATEGORYVALUE.xml
database/model/tables/K_COMMENT.xml
database/model/tables/K_ENTRY.xml
database/model/tables/K_ENTRYCATEGORY.xml
database/model/tables/K_ENTRYRELATED.xml
database/model/tables/K_SOURCE.xml
database/model/tables/K_SYNONYM.xml
database/model/tables/K_TOPIC.xml
database/model/tables/K_TYPE.xml
database/model/tables/MA_CALCSTD.xml
database/model/tables/MA_CCP.xml
database/model/tables/MA_CCP_GROUP.xml
database/model/tables/MA_CCP_SHIFT.xml
database/model/tables/MA_CONSUMEPRODUCT.xml
database/model/tables/MA_CONSUMERM.xml
database/model/tables/MA_COSTCENTER.xml
database/model/tables/MA_COSTCENTER_EMPLOYEE.xml
database/model/tables/MA_COSTCENTER_IC.xml
database/model/tables/MA_COSTCENTER_MACHINE.xml
database/model/tables/MA_COSTCENTER_VERSION.xml
database/model/tables/MA_DEFAULTPLAN.xml
database/model/tables/MA_GLOBALUSE.xml
database/model/tables/MA_INCIDENCE.xml
database/model/tables/MA_INDIRECT_COST.xml
database/model/tables/MA_INDIRECT_COST_VALUE.xml
database/model/tables/MA_MACHINE.xml
database/model/tables/MA_MACHINESTATION.xml
database/model/tables/MA_MACHINE_COST.xml
database/model/tables/MA_MACHINE_TYPE.xml
database/model/tables/MA_MAINTENANCE.xml
database/model/tables/MA_MAINT_OPERATION.xml
database/model/tables/MA_MAINT_PART.xml
database/model/tables/MA_MAINT_PERIODICITY.xml
database/model/tables/MA_MAINT_SCHEDULED.xml
database/model/tables/MA_MAINT_WORKER.xml
database/model/tables/MA_MEASURE_GROUP.xml
database/model/tables/MA_MEASURE_SHIFT.xml
database/model/tables/MA_MEASURE_TIME.xml
database/model/tables/MA_MEASURE_VALUES.xml
database/model/tables/MA_PC_CASE.xml
database/model/tables/MA_PC_TEST.xml
database/model/tables/MA_PC_VALUE.xml
database/model/tables/MA_PERIODIC_CONTROL.xml
database/model/tables/MA_PL_EMPLOYEE.xml
database/model/tables/MA_PL_IC.xml
database/model/tables/MA_PL_INVOICELINE.xml
database/model/tables/MA_PL_MACHINE.xml
database/model/tables/MA_PROCESS.xml
database/model/tables/MA_PROCESSPLAN.xml
database/model/tables/MA_PROCESSPLAN_VERSION.xml
database/model/tables/MA_PRODUCTTYPE.xml
database/model/tables/MA_SECTION.xml
database/model/tables/MA_SEQUENCE.xml
database/model/tables/MA_SEQUENCEPRODUCT.xml
database/model/tables/MA_SEQUENCEPRODUCT_COST.xml
database/model/tables/MA_TOOLSET.xml
database/model/tables/MA_TOOLSETPROCESS.xml
database/model/tables/MA_TOOLSETUSED.xml
database/model/tables/MA_TOOLSET_TYPE.xml
database/model/tables/MA_WEEMPLOYEE.xml
database/model/tables/MA_WEINCIDENCE.xml
database/model/tables/MA_WETECHNICALSUPPORT.xml
database/model/tables/MA_WORKREQUIREMENT.xml
database/model/tables/MA_WORKSTATION.xml
database/model/tables/MA_WRPHASE.xml
database/model/tables/MA_WRPHASEPRODUCT.xml
database/model/tables/MRP_PLANNER.xml
database/model/tables/MRP_PLANNINGMETHOD.xml
database/model/tables/MRP_PLANNINGMETHODLINE.xml
database/model/tables/MRP_RUN_PRODUCTION.xml
database/model/tables/MRP_RUN_PRODUCTIONLINE.xml
database/model/tables/MRP_RUN_PURCHASE.xml
database/model/tables/MRP_RUN_PURCHASELINE.xml
database/model/tables/MRP_SALESFORECAST.xml
database/model/tables/MRP_SALESFORECASTLINE.xml
database/model/tables/M_ATTRIBUTE.xml
database/model/tables/M_ATTRIBUTEINSTANCE.xml
database/model/tables/M_ATTRIBUTESEARCH.xml
database/model/tables/M_ATTRIBUTESET.xml
database/model/tables/M_ATTRIBUTESETINSTANCE.xml
database/model/tables/M_ATTRIBUTEUSE.xml
database/model/tables/M_ATTRIBUTEVALUE.xml
database/model/tables/M_DISCOUNTSCHEMA.xml
database/model/tables/M_DISCOUNTSCHEMABREAK.xml
database/model/tables/M_DISCOUNTSCHEMALINE.xml
database/model/tables/M_EDI.xml
database/model/tables/M_EDI_INFO.xml
database/model/tables/M_FREIGHT.xml
database/model/tables/M_INOUT.xml
database/model/tables/M_INOUTLINE.xml
database/model/tables/M_INOUTLINE_TYPE.xml
database/model/tables/M_INTERNAL_CONSUMPTION.xml
database/model/tables/M_INTERNAL_CONSUMPTIONLINE.xml
database/model/tables/M_INVENTORY.xml
database/model/tables/M_INVENTORYLINE.xml
database/model/tables/M_LOCATOR.xml
database/model/tables/M_LOCATOR_RENTING.xml
database/model/tables/M_LOCATOR_TYPE.xml
database/model/tables/M_LOT.xml
database/model/tables/M_LOTCTL.xml
database/model/tables/M_MATCHINV.xml
database/model/tables/M_MATCHPO.xml
database/model/tables/M_MOVEMENT.xml
database/model/tables/M_MOVEMENTLINE.xml
database/model/tables/M_OFFER.xml
database/model/tables/M_OFFER_BPARTNER.xml
database/model/tables/M_OFFER_BP_GROUP.xml
database/model/tables/M_OFFER_PRICELIST.xml
database/model/tables/M_OFFER_PRODUCT.xml
database/model/tables/M_OFFER_PROD_CAT.xml
database/model/tables/M_PERPETUALINV.xml
database/model/tables/M_PRICELIST.xml
database/model/tables/M_PRICELIST_VERSION.xml
database/model/tables/M_PRODUCT.xml
database/model/tables/M_PRODUCTION.xml
database/model/tables/M_PRODUCTIONLINE.xml
database/model/tables/M_PRODUCTIONPLAN.xml
database/model/tables/M_PRODUCTPRICE.xml
database/model/tables/M_PRODUCT_ACCT.xml
database/model/tables/M_PRODUCT_BOM.xml
database/model/tables/M_PRODUCT_CATEGORY.xml
database/model/tables/M_PRODUCT_CATEGORY_ACCT.xml
database/model/tables/M_PRODUCT_COSTING.xml
database/model/tables/M_PRODUCT_PO.xml
database/model/tables/M_PRODUCT_TEMPLATE.xml
database/model/tables/M_PRODUCT_TRL.xml
database/model/tables/M_PRODUCT_UOM.xml
database/model/tables/M_RAPPEL.xml
database/model/tables/M_RAPPEL_BPARTNER.xml
database/model/tables/M_RAPPEL_INVOICE.xml
database/model/tables/M_RAPPEL_PRODUCTCATEGORY.xml
database/model/tables/M_RAPPEL_SCALE.xml
database/model/tables/M_REPLENISH.xml
database/model/tables/M_REQUISITION.xml
database/model/tables/M_REQUISITIONLINE.xml
database/model/tables/M_SERNOCTL.xml
database/model/tables/M_SHIPPER.xml
database/model/tables/M_STORAGE_DETAIL.xml
database/model/tables/M_STORAGE_PENDING.xml
database/model/tables/M_SUBSTITUTE.xml
database/model/tables/M_TRANSACTION.xml
database/model/tables/M_WAREHOUSE.xml
database/model/tables/M_WAREHOUSE_ACCT.xml
database/model/tables/M_WAREHOUSE_SHIPPER.xml
database/model/tables/M_WH_PERIOD.xml
database/model/tables/M_WH_SCHEDULE.xml
database/model/tables/PA_ACHIEVEMENT.xml
database/model/tables/PA_COLOR.xml
database/model/tables/PA_GOAL.xml
database/model/tables/PA_MEASURE.xml
database/model/tables/PA_MEASURECALC.xml
database/model/tables/PA_REPORT.xml
database/model/tables/PA_REPORTCOLUMN.xml
database/model/tables/PA_REPORTCOLUMNSET.xml
database/model/tables/PA_REPORTLINE.xml
database/model/tables/PA_REPORTLINESET.xml
database/model/tables/PA_REPORTSOURCE.xml
database/model/tables/R_CONTACTINTEREST.xml
database/model/tables/R_INTERESTAREA.xml
database/model/tables/R_MAILTEXT.xml
database/model/tables/R_REQUEST.xml
database/model/tables/R_REQUESTACTION.xml
database/model/tables/R_REQUESTPROCESSOR.xml
database/model/tables/R_REQUESTPROCESSOR_ROUTE.xml
database/model/tables/R_REQUESTTYPE.xml
database/model/tables/S_EXPENSETYPE.xml
database/model/tables/S_RESOURCE.xml
database/model/tables/S_RESOURCEASSIGNMENT.xml
database/model/tables/S_RESOURCETYPE.xml
database/model/tables/S_RESOURCEUNAVAILABLE.xml
database/model/tables/S_TIMEEXPENSE.xml
database/model/tables/S_TIMEEXPENSELINE.xml
database/model/tables/S_TRAINING.xml
database/model/tables/S_TRAINING_CLASS.xml
database/model/tables/TEST.xml
database/model/tables/TIRE_STORAGE.xml
database/model/tables/W_BASKET.xml
database/model/tables/W_BASKETLINE.xml
database/model/tables/W_CLICK.xml
database/model/tables/W_CLICKCOUNT.xml
database/model/tables/W_COUNTER.xml
database/model/tables/W_COUNTERCOUNT.xml
--- a/database/model/tables/AD_ATTACHMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ATTACHMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,6 +31,6 @@
         <index-column name="AD_TABLE_ID"/>
         <index-column name="RECORD_ID"/>
       </index>
-      <check name="AD_ATTACHMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_ATTACHMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ATTRIBUTE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ATTRIBUTE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -38,25 +38,25 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADATTRIBUTE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCEVALUE_ADATTRIBUTE">
+        <reference local="AD_REFERENCE_VALUE_ID" foreign="AD_REFERENCE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCE_ADATTRIBUTE">
         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCEVALUE_ADATTRIBUTE">
-        <reference local="AD_REFERENCE_VALUE_ID" foreign="AD_REFERENCE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADATTRIBUTE" onDelete="cascade">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_VAL_RULE" name="ADVALRULE_ADATTRIBUTE" onDelete="setnull">
         <reference local="AD_VAL_RULE_ID" foreign="AD_VAL_RULE_ID"/>
       </foreign-key>
-      <check name="ADATTRIBUTE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADATTRIBUTE_ISENCRYPTED_CHECK" condition="IsEncrypted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADATTRIBUTE_ISFIELDONLY_CHECK" condition="IsFieldOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADATTRIBUTE_ISHEADING_CHECK" condition="IsHeading in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADATTRIBUTE_ISMANDATORY_CHECK" condition="IsMandatory in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADATTRIBUTE_ISREADONLY_CHECK" condition="IsReadOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADATTRIBUTE_ISSAMELINE_CHECK" condition="IsSameLine in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADATTRIBUTE_ISUPDATEABLE_CHECK" condition="IsUpdateable in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISENCRYPTED_CHECK" condition="ISENCRYPTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISFIELDONLY_CHECK" condition="ISFIELDONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISHEADING_CHECK" condition="ISHEADING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISMANDATORY_CHECK" condition="ISMANDATORY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISREADONLY_CHECK" condition="ISREADONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISSAMELINE_CHECK" condition="ISSAMELINE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADATTRIBUTE_ISUPDATEABLE_CHECK" condition="ISUPDATEABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_CALLOUT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_CALLOUT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,6 +17,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADCALLOUT_FK_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_CALLOUT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_CALLOUT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_CLIENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_CLIENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -41,6 +41,6 @@
       <unique name="AD_CLIENT_NAME">
         <unique-column name="NAME"/>
       </unique>
-      <check name="AD_CLIENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_CLIENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_CLIENTINFO.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_CLIENTINFO.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -33,9 +33,6 @@
       <column name="CHECKORDERORG" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
       <column name="CHECKINOUTORG" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
       <column name="GROUPACCTINVLINES" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
-      <foreign-key foreignTable="AD_CLIENT" name="AD_CLIENT_CLIENTINFO">
-        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADCLIENTINFO">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
@@ -57,6 +54,9 @@
       <foreign-key foreignTable="AD_TREE" name="ADTREESALESREG_ADCLIENTINFO">
         <reference local="AD_TREE_SALESREGION_ID" foreign="AD_TREE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_CLIENT" name="AD_CLIENT_CLIENTINFO">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA1_ADCLIENTINFO">
         <reference local="C_ACCTSCHEMA1_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
@@ -93,12 +93,12 @@
       <foreign-key foreignTable="PA_GOAL" name="PAGOAL_AD_CLIENTINFO">
         <reference local="PA_GOAL_ID" foreign="PA_GOAL_ID"/>
       </foreign-key>
-      <check name="ADCLIENTINFO_ACCT2ACTIVE_CHECK" condition="Acct2_Active in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCLIENTINFO_ACCT3ACTIVE_CHECK" condition="Acct3_Active in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADCLIENTINFO_ACCT2ACTIVE_CHECK" condition="ACCT2_ACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCLIENTINFO_ACCT3ACTIVE_CHECK" condition="ACCT3_ACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
       <check name="ADCLIENTINFO_ANEGATSTOCK_CHECK" condition="ALLOWNEGATIVESTOCK IN (&apos;Y&apos;, &apos;N&apos;)"/>
       <check name="ADCLIENTINFO_INOUTORG_CHECK" condition="CHECKINOUTORG IN (&apos;Y&apos;, &apos;N&apos;)"/>
-      <check name="ADCLIENTINFO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCLIENTINFO_ISDISLNAMT_CHECK" condition="IsDiscountLineAmt in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADCLIENTINFO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCLIENTINFO_ISDISLNAMT_CHECK" condition="ISDISCOUNTLINEAMT IN (&apos;Y&apos;, &apos;N&apos;)"/>
       <check name="ADCLIENTINFO_ORDERORG_CHECK" condition="CHECKORDERORG IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_COLOR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_COLOR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -35,6 +35,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADCOLOR">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_COLOR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_COLOR_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_COLUMN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_COLUMN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -46,12 +46,12 @@
       <foreign-key foreignTable="AD_CALLOUT" name="ADCOLUMN_FK_CALLOUT">
         <reference local="AD_CALLOUT_ID" foreign="AD_CALLOUT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_PROCESS" name="ADPROCESS_ADCOLUMN" onDelete="setnull">
+        <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ELEMENT" name="AD_ELEMENT_AD_COLUMN">
         <reference local="AD_ELEMENT_ID" foreign="AD_ELEMENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_PROCESS" name="ADPROCESS_ADCOLUMN" onDelete="setnull">
-        <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_REFERENCE" name="AD_REFERENCE_COLUMNDATATYPE">
         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       </foreign-key>
@@ -77,16 +77,16 @@
         <unique-column name="AD_TABLE_ID"/>
         <unique-column name="COLUMNNAME"/>
       </unique>
-      <check name="ADCOLUMN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISDESENCRYPT_CHECK" condition="IsDesencryptable IN (&apos;Y&apos;, &apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISENCRYPTED_CHECK" condition="IsEncrypted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISIDENTIFIER_CHECK" condition="IsIdentifier in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISKEY_CHECK" condition="IsKey in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISMANDATORY_CHECK" condition="IsMandatory in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISPARENT_CHECK" condition="IsParent in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISSELCOL_CHECK" condition="IsSelectionColumn in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISSYNCDBASE_CHECK" condition="IsSyncDatabase in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADCOLUMN_ISUPDATEABLE_CHECK" condition="IsUpdateable in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISDESENCRYPT_CHECK" condition="ISDESENCRYPTABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISENCRYPTED_CHECK" condition="ISENCRYPTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISIDENTIFIER_CHECK" condition="ISIDENTIFIER IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISKEY_CHECK" condition="ISKEY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISMANDATORY_CHECK" condition="ISMANDATORY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISPARENT_CHECK" condition="ISPARENT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISSELCOL_CHECK" condition="ISSELECTIONCOLUMN IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISSYNCDBASE_CHECK" condition="ISSYNCDATABASE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADCOLUMN_ISUPDATEABLE_CHECK" condition="ISUPDATEABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_DESKTOP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_DESKTOP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,6 +26,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADDESKTOP">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_DESKTOP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_DESKTOP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_DESKTOPWORKBENCH.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_DESKTOPWORKBENCH.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <foreign-key foreignTable="AD_WORKBENCH" name="ADWORKBENCH_ADDESKTOPWB">
         <reference local="AD_WORKBENCH_ID" foreign="AD_WORKBENCH_ID"/>
       </foreign-key>
-      <check name="AD_DESKTOPWORKB_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_DESKTOPWORKB_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_DESKTOP_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_DESKTOP_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADDESKTOPTRL">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADDESKTOPTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADDESKTOPTRL_IS_ANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADDESKTOPTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADDESKTOPTRL_IS_ANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_DEVELOPER.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_DEVELOPER.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,6 +27,6 @@
         <index-column name="AD_CLIENT_ID"/>
         <index-column name="NAME"/>
       </index>
-      <check name="AD_DEVELOPER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_DEVELOPER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ELEMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ELEMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -35,6 +35,6 @@
       <index name="AD_ELEMENT_NAME" unique="false">
         <index-column name="NAME"/>
       </index>
-      <check name="AD_ELEMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_ELEMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ELEMENT_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ELEMENT_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,13 +25,13 @@
       <foreign-key foreignTable="AD_ELEMENT" name="ADELEMENT_ADELEMENTTRL" onDelete="cascade">
         <reference local="AD_ELEMENT_ID" foreign="AD_ELEMENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADELEMENTTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_AD_ELEMENT_TRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADELEMENTTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
-      <check name="ADELEMENTTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADELEMENTTRL_IS_ANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADELEMENTTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADELEMENTTRL_IS_ANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ERROR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ERROR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,6 +21,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADERROR">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_ERROR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_ERROR_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FIELD.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FIELD.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,12 +28,12 @@
       <column name="ISENCRYPTED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
       <column name="ENTITYTYPE" primaryKey="false" required="false" type="CHAR" size="1" default="D" autoIncrement="false"/>
       <column name="SHOWINRELATION" primaryKey="false" required="false" type="VARCHAR" size="1" default="Y" autoIncrement="false"/>
+      <foreign-key foreignTable="AD_FIELDGROUP" name="ADFIELDGROUP_ADFIELD">
+        <reference local="AD_FIELDGROUP_ID" foreign="AD_FIELDGROUP_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_COLUMN" name="AD_COLUMN_FIELD">
         <reference local="AD_COLUMN_ID" foreign="AD_COLUMN_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_FIELDGROUP" name="ADFIELDGROUP_ADFIELD">
-        <reference local="AD_FIELDGROUP_ID" foreign="AD_FIELDGROUP_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_TAB" name="AD_TAB_FIELD" onDelete="cascade">
         <reference local="AD_TAB_ID" foreign="AD_TAB_ID"/>
       </foreign-key>
@@ -49,13 +49,13 @@
       <index name="AD_FIELD_TAB" unique="false">
         <index-column name="AD_TAB_ID"/>
       </index>
-      <check name="ADFIELD_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELD_ISCENMAINT_CHECK" condition="IsCentrallyMaintained in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELD_ISDISPLAYED_CHECK" condition="IsDisplayed in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELD_ISENCRYPTED_CHECK" condition="IsEncrypted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELD_ISFIELDONLY_CHECK" condition="IsFieldOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELD_ISHEADING_CHECK" condition="IsHeading in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELD_ISREADONLY_CHECK" condition="IsReadOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELD_ISSAMELINE_CHECK" condition="IsSameLine in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADFIELD_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELD_ISCENMAINT_CHECK" condition="ISCENTRALLYMAINTAINED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELD_ISDISPLAYED_CHECK" condition="ISDISPLAYED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELD_ISENCRYPTED_CHECK" condition="ISENCRYPTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELD_ISFIELDONLY_CHECK" condition="ISFIELDONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELD_ISHEADING_CHECK" condition="ISHEADING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELD_ISREADONLY_CHECK" condition="ISREADONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELD_ISSAMELINE_CHECK" condition="ISSAMELINE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FIELDGROUP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FIELDGROUP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,6 +16,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADFIELDGROUP">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_FIELDGROUP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_FIELDGROUP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FIELDGROUP_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FIELDGROUP_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,7 +24,7 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADFIELDGROUPTRL">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADFIELDGRTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELDGRTRL_IS_ANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADFIELDGRTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELDGRTRL_IS_ANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FIELD_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FIELD_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,16 +17,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADFIELDTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADFIELDTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_FIELD" name="AD_FIELDTRL" onDelete="cascade">
         <reference local="AD_FIELD_ID" foreign="AD_FIELD_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_FIELDTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADFIELDTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
-      <check name="ADFIELDTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFIELDTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADFIELDTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFIELDTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FIND.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FIND.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADFIND">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_FIND_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_FIND_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FORM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FORM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,6 +21,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADFORM">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_FORM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_FORM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FORM_ACCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FORM_ACCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,7 +27,7 @@
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_FORM_ID"/>
       </index>
-      <check name="ADFORMAC_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFORMAC_ISREADWRITE_CHECK" condition="IsReadWrite in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADFORMAC_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFORMAC_ISREADWRITE_CHECK" condition="ISREADWRITE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_FORM_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_FORM_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADFORMTRL">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADFORMTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADFORMTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADFORMTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADFORMTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_IMAGE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_IMAGE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -18,6 +18,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADIMAGE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_IMAGE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_IMAGE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_IMPFORMAT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_IMPFORMAT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,6 +27,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="AD_IMPFORMAT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_IMPFORMAT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_IMPFORMAT_ROW.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_IMPFORMAT_ROW.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -34,7 +34,7 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADIMPFORMATROW">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADIMPFORMATROW_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADIMPFORMROW_DIV100_CHECK" condition="DivideBy100 in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADIMPFORMATROW_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADIMPFORMROW_DIV100_CHECK" condition="DIVIDEBY100 IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_LANGUAGE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_LANGUAGE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,8 +24,8 @@
       <foreign-key foreignTable="AD_ORG" name="LANGUAGEORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADLANGUAGE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADLANGUAGE_ISBASELANG_CHECK" condition="IsBaseLanguage in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADLANGUAGE_ISSYSANG_CHECK" condition="IsSystemLanguage in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADLANGUAGE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADLANGUAGE_ISBASELANG_CHECK" condition="ISBASELANGUAGE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADLANGUAGE_ISSYSANG_CHECK" condition="ISSYSTEMLANGUAGE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_MENU.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_MENU.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -32,9 +32,6 @@
       <foreign-key foreignTable="AD_WORKBENCH" name="ADMENU_ADWORKBENCH">
         <reference local="AD_WORKBENCH_ID" foreign="AD_WORKBENCH_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="AD_MENU_ORG">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_PROCESS" name="ADPROCESS_ADMENU">
         <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
       </foreign-key>
@@ -47,8 +44,11 @@
       <foreign-key foreignTable="AD_WORKFLOW" name="ADWORKFLOW_ADMENU">
         <reference local="AD_WORKFLOW_ID" foreign="AD_WORKFLOW_ID"/>
       </foreign-key>
-      <check name="ADMENU_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADMENU_ISREADONLY_CHECK" condition="IsReadOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADMENU_ISSOTRX_CHECK" condition="IsSOTrx in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <foreign-key foreignTable="AD_ORG" name="AD_MENU_ORG">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
+      <check name="ADMENU_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADMENU_ISREADONLY_CHECK" condition="ISREADONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADMENU_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_MENU_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_MENU_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,16 +16,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADMENUTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADMENUTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_MENUTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
       <foreign-key foreignTable="AD_MENU" name="AD_MENUTRL" onDelete="cascade">
         <reference local="AD_MENU_ID" foreign="AD_MENU_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADMENUTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
-      <check name="ADMENUTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADMENUTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADMENUTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADMENUTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_MESSAGE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_MESSAGE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <unique name="MESSAGE_UN_VALUE">
         <unique-column name="VALUE"/>
       </unique>
-      <check name="AD_MESSAGE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_MESSAGE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_MESSAGE_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_MESSAGE_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,16 +16,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADMESSAGETRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADMESSAGETRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_MESSAGETRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
       <foreign-key foreignTable="AD_MESSAGE" name="AD_MESSAGETRL" onDelete="cascade">
         <reference local="AD_MESSAGE_ID" foreign="AD_MESSAGE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADMESSAGETRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
-      <check name="ADMESSAGE_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADMESSAGE_TRL_ISTRANSD_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADMESSAGE_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADMESSAGE_TRL_ISTRANSD_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_MODEL_OBJECT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_MODEL_OBJECT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -53,7 +53,7 @@
       <unique name="AD_MODEL_OBJECT_CLASSNAME">
         <unique-column name="CLASSNAME"/>
       </unique>
-      <check name="ADMODELOBJECT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADMODELOBJECT_ISDEFAULT_CHECK" condition="IsDefault in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADMODELOBJECT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADMODELOBJECT_ISDEFAULT_CHECK" condition="ISDEFAULT IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_MODEL_OBJECT_MAPPING.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_MODEL_OBJECT_MAPPING.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,7 +21,7 @@
       <foreign-key foreignTable="AD_ORG" name="MODELOBJMAP_FK_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADMODELOBJECTMA_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADMODELOBJECTMA_NG_ISDEF_CHECK" condition="IsDefault in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADMODELOBJECTMA_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADMODELOBJECTMA_NG_ISDEF_CHECK" condition="ISDEFAULT IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_NOTE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_NOTE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,7 +31,7 @@
       <foreign-key foreignTable="AD_USER" name="ADUSER_ADNOTE">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
-      <check name="ADNOTE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADNOTE_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADNOTE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADNOTE_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ORG.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ORG.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="AD_ORG_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_ORG_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ORGINFO.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ORGINFO.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,6 +30,6 @@
       <foreign-key foreignTable="PA_GOAL" name="PAGOAL_AD_ORGINFO">
         <reference local="PA_GOAL_ID" foreign="PA_GOAL_ID"/>
       </foreign-key>
-      <check name="AD_ORGINFO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_ORGINFO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PINSTANCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PINSTANCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,6 +31,6 @@
         <index-column name="AD_PROCESS_ID"/>
         <index-column name="RECORD_ID"/>
       </index>
-      <check name="AD_PINSTANCE_ISACTIVE_CHECK" condition="IsProcessing in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_PINSTANCE_ISACTIVE_CHECK" condition="ISPROCESSING IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PREFERENCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PREFERENCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -32,6 +32,6 @@
         <unique-column name="AD_USER_ID"/>
         <unique-column name="ATTRIBUTE"/>
       </unique>
-      <check name="AD_PREFERENCE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_PREFERENCE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTCOLOR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTCOLOR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,6 +22,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="AD_PRINTCOLOR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_PRINTCOLOR_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTFONT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTFONT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,6 +22,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="AD_PRINTFONT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_PRINTFONT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTFORM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTFORM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -61,6 +61,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="AD_ORG_ID"/>
       </unique>
-      <check name="AD_PRINTFORM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_PRINTFORM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTFORMAT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTFORMAT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -33,9 +33,6 @@
       <foreign-key foreignTable="AD_PRINTCOLOR" name="ADPRINTCOLOR_ADPRINTFORMAT">
         <reference local="AD_PRINTCOLOR_ID" foreign="AD_PRINTCOLOR_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_PRINTFONT" name="AD_PRINTFONT_ADPRINTFORMAT">
-        <reference local="AD_PRINTFONT_ID" foreign="AD_PRINTFONT_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_PRINTTABLEFORMAT" name="ADPRINTFORMATTABLE_FORMAT">
         <reference local="AD_PRINTTABLEFORMAT_ID" foreign="AD_PRINTTABLEFORMAT_ID"/>
       </foreign-key>
@@ -48,6 +45,9 @@
       <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADPRINTFORMAT">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_PRINTFONT" name="AD_PRINTFONT_ADPRINTFORMAT">
+        <reference local="AD_PRINTFONT_ID" foreign="AD_PRINTFONT_ID"/>
+      </foreign-key>
       <index name="AD_PRINTFORMAT_TABLE" unique="false">
         <index-column name="AD_TABLE_ID"/>
       </index>
@@ -56,9 +56,9 @@
         <unique-column name="AD_TABLE_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="ADPRINTFORM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRINTFORM_ISFORM_CHECK" condition="IsForm in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRINTFORM_ISSTFOOTER_CHECK" condition="IsStandardHeaderFooter in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRINTFORM_ISTABBAS_CHECK" condition="IsTableBased in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPRINTFORM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRINTFORM_ISFORM_CHECK" condition="ISFORM IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRINTFORM_ISSTFOOTER_CHECK" condition="ISSTANDARDHEADERFOOTER IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRINTFORM_ISTABBAS_CHECK" condition="ISTABLEBASED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTFORMATITEM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTFORMATITEM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -74,14 +74,14 @@
       <index name="AD_PRINTFORMATITEM_FORMAT" unique="false">
         <index-column name="AD_PRINTFORMAT_ID"/>
       </index>
-      <check name="ADPRFORMITEM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISGROUPBY_CHECK" condition="IsGroupBy in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISHEIGHTLN_CHECK" condition="IsHeightOneLine in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISNEXTLN_CHECK" condition="IsNextLine in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISORDERBY_CHECK" condition="IsOrderBy in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISPAGEBR_CHECK" condition="IsPageBreak in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISPRINTED_CHECK" condition="IsPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISRELPOS_CHECK" condition="IsRelativePosition in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRFORMITEM_ISSUMM_CHECK" condition="IsSummarized in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISGROUPBY_CHECK" condition="ISGROUPBY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISHEIGHTLN_CHECK" condition="ISHEIGHTONELINE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISNEXTLN_CHECK" condition="ISNEXTLINE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISORDERBY_CHECK" condition="ISORDERBY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISPAGEBR_CHECK" condition="ISPAGEBREAK IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISPRINTED_CHECK" condition="ISPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISRELPOS_CHECK" condition="ISRELATIVEPOSITION IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRFORMITEM_ISSUMM_CHECK" condition="ISSUMMARIZED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTFORMATITEM_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTFORMATITEM_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,7 +25,7 @@
       <foreign-key foreignTable="AD_PRINTFORMATITEM" name="ADPRINTFORMATITEM_TRL" onDelete="cascade">
         <reference local="AD_PRINTFORMATITEM_ID" foreign="AD_PRINTFORMATITEM_ID"/>
       </foreign-key>
-      <check name="ADPRINTFORMTRL_ISACTIVE_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRINTFORMTRL_ISTRANS_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPRINTFORMTRL_ISACTIVE_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRINTFORMTRL_ISTRANS_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTGRAPH.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTGRAPH.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,9 +25,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADPRINTGRAPH">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_PRINTFORMAT" name="ADPRINTFORMAT_ADPRINTGRAPH">
-        <reference local="AD_PRINTFORMAT_ID" foreign="AD_PRINTFORMAT_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_PRINTFORMATITEM" name="ADPRINTFORMATITEM_GRAPHDATA">
         <reference local="DATA_PRINTFORMATITEM_ID" foreign="AD_PRINTFORMATITEM_ID"/>
       </foreign-key>
@@ -46,6 +43,9 @@
       <foreign-key foreignTable="AD_PRINTFORMATITEM" name="ADPRINTFORMATITEM_GRAPHDESCR">
         <reference local="DESCRIPTION_PRINTFORMATITEM_ID" foreign="AD_PRINTFORMATITEM_ID"/>
       </foreign-key>
-      <check name="AD_PRINTGRAPH_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <foreign-key foreignTable="AD_PRINTFORMAT" name="ADPRINTFORMAT_ADPRINTGRAPH">
+        <reference local="AD_PRINTFORMAT_ID" foreign="AD_PRINTFORMAT_ID"/>
+      </foreign-key>
+      <check name="AD_PRINTGRAPH_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTPAPER.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTPAPER.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,7 +29,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="ADPRINTPAPER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRINTPAPER_ISLANDSCAPE_CHECK" condition="IsLandscape in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPRINTPAPER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRINTPAPER_ISLANDSCAPE_CHECK" condition="ISLANDSCAPE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PRINTTABLEFORMAT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PRINTTABLEFORMAT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -53,6 +53,6 @@
       <foreign-key foreignTable="AD_PRINTFONT" name="REFAD_PRINTFONT1620">
         <reference local="FUNCT_PRINTFONT_ID" foreign="AD_PRINTFONT_ID"/>
       </foreign-key>
-      <check name="AD_PRINTTABLEFO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_PRINTTABLEFO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PROCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PROCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -39,10 +39,10 @@
       <foreign-key foreignTable="AD_REPORTVIEW" name="ADREPORTVIEW_ADPROCESS">
         <reference local="AD_REPORTVIEW_ID" foreign="AD_REPORTVIEW_ID"/>
       </foreign-key>
-      <check name="ADPROCESS_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCESS_ISBACKGROUND_CHECK" condition="IsBackground in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCESS_ISDIRECTPRINT_CHECK" condition="IsDirectPrint in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCESS_ISREPORT_CHECK" condition="IsReport in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCESS_ISUSE_TARTABLE_CHECK" condition="IsUserStartable in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPROCESS_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCESS_ISBACKGROUND_CHECK" condition="ISBACKGROUND IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCESS_ISDIRECTPRINT_CHECK" condition="ISDIRECTPRINT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCESS_ISREPORT_CHECK" condition="ISREPORT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCESS_ISUSE_TARTABLE_CHECK" condition="ISUSERSTARTABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PROCESS_ACCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PROCESS_ACCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -11,23 +11,23 @@
       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="ISREADWRITE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
+      <foreign-key foreignTable="AD_PROCESS" name="ADPROCESS_ADPROCESSACCESS" onDelete="cascade">
+        <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADPROCESSACCESS" onDelete="cascade">
+        <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="AD_PROCESSACCESS_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_PROCESS" name="ADPROCESS_ADPROCESSACCESS" onDelete="cascade">
-        <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_PROCESSTACCESS_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADPROCESSACCESS" onDelete="cascade">
-        <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
-      </foreign-key>
       <index name="AD_PROCESS_ACCESS_UN_KEY" unique="true">
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_PROCESS_ID"/>
       </index>
-      <check name="ADPROCACC_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCACC_ISREADWRITE_CHECK" condition="IsReadWrite in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPROCACC_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCACC_ISREADWRITE_CHECK" condition="ISREADWRITE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PROCESS_PARA.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PROCESS_PARA.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -41,21 +41,21 @@
       <foreign-key foreignTable="AD_PROCESS" name="ADPROCESS_ADPROCESSPARA" onDelete="cascade">
         <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCEVALUE_ADPROCPARA">
+        <reference local="AD_REFERENCE_VALUE_ID" foreign="AD_REFERENCE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCE_ADPROCESSPARA">
         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCEVALUE_ADPROCPARA">
-        <reference local="AD_REFERENCE_VALUE_ID" foreign="AD_REFERENCE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_VAL_RULE" name="ADVALRULE_AD_PROCESSPARA">
         <reference local="AD_VAL_RULE_ID" foreign="AD_VAL_RULE_ID"/>
       </foreign-key>
       <index name="AD_PROCESS_PARA_PROCESS" unique="false">
         <index-column name="AD_PROCESS_ID"/>
       </index>
-      <check name="ADPROCPARA_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCPARA_ISCENTMAINT_CHECK" condition="IsCentrallyMaintained in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCPARA_ISMANDATORY_CHECK" condition="IsMandatory in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCPARA_ISRANGE_CHECK" condition="IsRange in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPROCPARA_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCPARA_ISCENTMAINT_CHECK" condition="ISCENTRALLYMAINTAINED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCPARA_ISMANDATORY_CHECK" condition="ISMANDATORY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCPARA_ISRANGE_CHECK" condition="ISRANGE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PROCESS_PARA_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PROCESS_PARA_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="AD_PROCESS_PARA" name="ADPROCPARA_ADPROCPARATRL" onDelete="cascade">
         <reference local="AD_PROCESS_PARA_ID" foreign="AD_PROCESS_PARA_ID"/>
       </foreign-key>
-      <check name="ADPRPARATRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPRPARATRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPRPARATRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPRPARATRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_PROCESS_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_PROCESS_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,16 +17,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADPROCESSTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADPROCESSTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_AD_PROCESS_TRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADPROCESSTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_PROCESS" name="AD_PROCESS_AD_PROCESS_TRL" onDelete="cascade">
         <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
       </foreign-key>
-      <check name="ADPROCESSTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADPROCESSTRL_IS_ANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADPROCESSTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADPROCESSTRL_IS_ANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REFERENCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REFERENCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <unique name="AD_REFERENCE_NAME">
         <unique-column name="NAME"/>
       </unique>
-      <check name="AD_REFERENCE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REFERENCE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REFERENCE_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REFERENCE_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,16 +17,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADREFERENCETRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADREFERENCETRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_REFERENCETRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADREFERENCETRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_REFERENCE" name="AD_REFERENCETRL" onDelete="cascade">
         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       </foreign-key>
-      <check name="ADREFTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADREFTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADREFTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADREFTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REF_LIST.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REF_LIST.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,6 +29,6 @@
         <unique-column name="AD_REFERENCE_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="AD_REF_LIST_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REF_LIST_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REF_LIST_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REF_LIST_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,16 +16,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADREFLISTTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADREFLISTTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_REFLISTTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADREFLISTTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_REF_LIST" name="AD_REFLISTTRL" onDelete="cascade">
         <reference local="AD_REF_LIST_ID" foreign="AD_REF_LIST_ID"/>
       </foreign-key>
-      <check name="ADREFLISTTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADREFLISTTRL_IS_ANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADREFLISTTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADREFLISTTRL_IS_ANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REF_SEARCH.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REF_SEARCH.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <foreign-key foreignTable="AD_TABLE" name="REFSEARCH_FK_TABLE">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
-      <check name="AD_REF_SEARCH_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REF_SEARCH_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REF_SEARCH_COLUMN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REF_SEARCH_COLUMN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <foreign-key foreignTable="AD_ORG" name="REFSEARCHCOLUMN_FK_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_REF_SEARCH_C_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REF_SEARCH_C_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REF_TABLE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REF_TABLE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,15 +16,15 @@
       <column name="WHERECLAUSE" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
       <column name="ORDERBYCLAUSE" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
       <column name="ENTITYTYPE" primaryKey="false" required="false" type="CHAR" size="1" default="D" autoIncrement="false"/>
+      <foreign-key foreignTable="AD_TABLE" name="ADD_TABLE_REFTABLE">
+        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_COLUMN" name="AD_COLUMN_REFTABLE_DISPLAY">
         <reference local="AD_DISPLAY" foreign="AD_COLUMN_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_COLUMN" name="AD_COLUMN_REFTABLE_ID">
         <reference local="AD_KEY" foreign="AD_COLUMN_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_TABLE" name="ADD_TABLE_REFTABLE">
-        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_REFERENCE" name="AD_REFERENCE_REFTABLE" onDelete="cascade">
         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       </foreign-key>
@@ -34,7 +34,7 @@
       <foreign-key foreignTable="AD_ORG" name="REF_TABLEORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADREFTABLE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADREFTABLE_ISVALUEDISP_CHECK" condition="isValueDisplayed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADREFTABLE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADREFTABLE_ISVALUEDISP_CHECK" condition="ISVALUEDISPLAYED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REPLICATION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REPLICATION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -39,6 +39,6 @@
       <foreign-key foreignTable="AD_REPLICATIONSTRATEGY" name="ADREPLICATIONSTRATEGY_ADREP">
         <reference local="AD_REPLICATIONSTRATEGY_ID" foreign="AD_REPLICATIONSTRATEGY_ID"/>
       </foreign-key>
-      <check name="AD_REPLICATION_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REPLICATION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REPLICATIONSTRATEGY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REPLICATIONSTRATEGY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -19,6 +19,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADREPLICATIONSTRATEGY">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_REPLICATIONS_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REPLICATIONS_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REPLICATIONTABLE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REPLICATIONTABLE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,6 +25,6 @@
       <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADREPLICATIONTABLE" onDelete="cascade">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
-      <check name="AD_REPLICATIONT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REPLICATIONT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REPLICATION_LOG.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REPLICATION_LOG.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,7 +25,7 @@
       <foreign-key foreignTable="AD_REPLICATIONTABLE" name="ADREPTABLE_ADREPLOG" onDelete="setnull">
         <reference local="AD_REPLICATIONTABLE_ID" foreign="AD_REPLICATIONTABLE_ID"/>
       </foreign-key>
-      <check name="ADREPLOG_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADREPLOG_ISREPLICATED_CHECK" condition="IsReplicated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADREPLOG_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADREPLOG_ISREPLICATED_CHECK" condition="ISREPLICATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REPLICATION_RUN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REPLICATION_RUN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,7 +22,7 @@
       <foreign-key foreignTable="AD_REPLICATION" name="ADREPLICATION_ADREPRUN" onDelete="cascade">
         <reference local="AD_REPLICATION_ID" foreign="AD_REPLICATION_ID"/>
       </foreign-key>
-      <check name="ADREPRUN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADREPRUN_ISREPLICATED_CHECK" condition="IsReplicated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADREPRUN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADREPRUN_ISREPLICATED_CHECK" condition="ISREPLICATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REPORTVIEW.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REPORTVIEW.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADREPORTVIEW" onDelete="cascade">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
-      <check name="AD_REPORTVIEW_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_REPORTVIEW_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_REPORTVIEW_COL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_REPORTVIEW_COL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,7 +25,7 @@
       <foreign-key foreignTable="AD_REPORTVIEW" name="ADREPORTVIEW_COL">
         <reference local="AD_REPORTVIEW_ID" foreign="AD_REPORTVIEW_ID"/>
       </foreign-key>
-      <check name="ADREPVIEWCOL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADREPVIEWCOL_ISGROUPFUN_CHECK" condition="IsGroupFunction in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADREPVIEWCOL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADREPVIEWCOL_ISGROUPFUN_CHECK" condition="ISGROUPFUNCTION IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ROLE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ROLE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -19,18 +19,18 @@
       <column name="AD_TREE_MENU_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="ISMANUAL" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
       <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
+      <foreign-key foreignTable="AD_TREE" name="ADTREE_ADROLE">
+        <reference local="AD_TREE_MENU_ID" foreign="AD_TREE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="AD_ROLECLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_ROLEORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_TREE" name="ADTREE_ADROLE">
-        <reference local="AD_TREE_MENU_ID" foreign="AD_TREE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_AD_ROLE">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <check name="AD_ROLE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_ROLE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_ROLE_ORGACCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_ROLE_ORGACCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -18,6 +18,6 @@
       <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADROLEORGACCESS" onDelete="cascade">
         <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
       </foreign-key>
-      <check name="AD_ROLE_ORGACCE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_ROLE_ORGACCE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_SEQUENCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_SEQUENCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -32,10 +32,10 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="ADSEQ_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADSEQ_ISAUDITED_CHECK" condition="IsAudited in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADSEQ_ISAUTOSEQUENCE_CHECK" condition="IsAutoSequence in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADSEQ_ISTABLEID_CHECK" condition="IsTableID in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADSEQ_STARTNEWYEAR_CHECK" condition="StartNewYear in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADSEQ_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADSEQ_ISAUDITED_CHECK" condition="ISAUDITED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADSEQ_ISAUTOSEQUENCE_CHECK" condition="ISAUTOSEQUENCE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADSEQ_ISTABLEID_CHECK" condition="ISTABLEID IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADSEQ_STARTNEWYEAR_CHECK" condition="STARTNEWYEAR IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_SEQUENCE_AUDIT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_SEQUENCE_AUDIT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -12,18 +12,18 @@
       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="AD_TABLE_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="RECORD_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
+      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADSEQUENCEAUDIT" onDelete="cascade">
+        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_SEQUENCE" name="AD_SEQUENCE_SEQUENCEAUDIT" onDelete="cascade">
         <reference local="AD_SEQUENCE_ID" foreign="AD_SEQUENCE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADSEQUENCEAUDIT" onDelete="cascade">
-        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="SEQUENCE_AUDITCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="SEQUENCE_AUDITORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_SEQUENCE_AUD_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_SEQUENCE_AUD_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_SEQUENCE_NO.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_SEQUENCE_NO.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
       <foreign-key foreignTable="AD_ORG" name="SEQUENCE_NOORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_SEQUENCE_NO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_SEQUENCE_NO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_SYSTEM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_SYSTEM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -32,6 +32,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADSYSTEM">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_SYSTEM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_SYSTEM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TAB.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TAB.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -36,9 +36,6 @@
       <column name="INCLUDED_TAB_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="FILTERCLAUSE" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
       <column name="EDITREFERENCE" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
-      <foreign-key foreignTable="AD_COLUMN" name="AD_COLUMN_AD_TAB">
-        <reference local="AD_COLUMN_ID" foreign="AD_COLUMN_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_COLUMN" name="ADCOLUMN_ADTABSORTORDER">
         <reference local="AD_COLUMNSORTORDER_ID" foreign="AD_COLUMN_ID"/>
       </foreign-key>
@@ -57,6 +54,9 @@
       <foreign-key foreignTable="AD_TAB" name="ADTAB_INCLUDED">
         <reference local="INCLUDED_TAB_ID" foreign="AD_TAB_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_COLUMN" name="AD_COLUMN_AD_TAB">
+        <reference local="AD_COLUMN_ID" foreign="AD_COLUMN_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_TABLE" name="AD_TABLE_TAB">
         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
@@ -79,11 +79,11 @@
         <unique-column name="AD_WINDOW_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="ADTAB_HASTREE_CHECK" condition="HasTree in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTAB_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTAB_ISINFOTAB_CHECK" condition="IsInfoTab in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTAB_ISREADONLY_CHECK" condition="IsReadOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTAB_ISSINGLEROW_CHECK" condition="IsSingleRow in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTAB_ISTRANSLATIONTAB_CHECK" condition="IsTranslationTab in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADTAB_HASTREE_CHECK" condition="HASTREE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTAB_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTAB_ISINFOTAB_CHECK" condition="ISINFOTAB IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTAB_ISREADONLY_CHECK" condition="ISREADONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTAB_ISSINGLEROW_CHECK" condition="ISSINGLEROW IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTAB_ISTRANSLATIONTAB_CHECK" condition="ISTRANSLATIONTAB IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TABLE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TABLE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -44,10 +44,10 @@
       <unique name="AD_TABLE_NAME">
         <unique-column name="NAME"/>
       </unique>
-      <check name="ADTABLE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTABLE_ISDELETEABLE_CHECK" condition="IsDeleteable in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTABLE_ISHIGHVOLUME_CHECK" condition="IsHighVolume in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTABLE_ISSECUR_YENABLED_CHECK" condition="IsSecurityEnabled in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTABLE_ISVIEW_CHECK" condition="IsView in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADTABLE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTABLE_ISDELETEABLE_CHECK" condition="ISDELETEABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTABLE_ISHIGHVOLUME_CHECK" condition="ISHIGHVOLUME IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTABLE_ISSECUR_YENABLED_CHECK" condition="ISSECURITYENABLED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTABLE_ISVIEW_CHECK" condition="ISVIEW IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TABLE_ACCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TABLE_ACCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -12,17 +12,17 @@
       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
       <column name="ISREADONLY" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
       <column name="ISEXCLUDE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
+      <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADTABLEACCESS" onDelete="cascade">
+        <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADTABLEACCESS" onDelete="cascade">
+        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="AD_DATAACCESSCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_DATAACCESSORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADTABLEACCESS" onDelete="cascade">
-        <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADTABLEACCESS" onDelete="cascade">
-        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
-      </foreign-key>
     </table>
   </database>
--- a/database/model/tables/AD_TAB_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TAB_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -18,16 +18,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADTABTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADTABTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_TABTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADTABTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_TAB" name="AD_TABTRL" onDelete="cascade">
         <reference local="AD_TAB_ID" foreign="AD_TAB_ID"/>
       </foreign-key>
-      <check name="ADTABTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTABTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADTABTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTABTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TASK.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TASK.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,6 +26,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="AD_TASK_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TASK_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TASKINSTANCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TASKINSTANCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,6 +22,6 @@
       <index name="AD_TASKINSTANCE_TASK" unique="false">
         <index-column name="AD_TASK_ID"/>
       </index>
-      <check name="AD_TASKINSTANCE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TASKINSTANCE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TASK_ACCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TASK_ACCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -14,20 +14,20 @@
       <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADTASKACCESS" onDelete="cascade">
         <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_TASK" name="ADTASK_ADTASKACCESS" onDelete="cascade">
+        <reference local="AD_TASK_ID" foreign="AD_TASK_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="AD_TASKACCESS_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_TASKACCESS_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_TASK" name="ADTASK_ADTASKACCESS" onDelete="cascade">
-        <reference local="AD_TASK_ID" foreign="AD_TASK_ID"/>
-      </foreign-key>
       <index name="AD_TASK_ACCESS_UN_KEY" unique="true">
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_TASK_ID"/>
       </index>
-      <check name="ADTASKACCESS_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTASKACCESS_ISREADWRITE_CHECK" condition="IsReadWrite in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADTASKACCESS_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTASKACCESS_ISREADWRITE_CHECK" condition="ISREADWRITE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TASK_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TASK_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,16 +17,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADTASKTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADTASKTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_TASKTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADTASKTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_TASK" name="AD_TASKTRL" onDelete="cascade">
         <reference local="AD_TASK_ID" foreign="AD_TASK_ID"/>
       </foreign-key>
-      <check name="ADTASKTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTASKTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADTASKTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTASKTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TEXTINTERFACES.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TEXTINTERFACES.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -18,6 +18,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADTEXTINTERFACES">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_TEXTINTERFACES_IN_ISACTIVE" condition="ISACTIVE IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TEXTINTERFACES_IN_ISACTIVE" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TEXTINTERFACES_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TEXTINTERFACES_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -15,12 +15,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADTEXTINTERFACESTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADTEXTINTERFACESTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_TEXTINTERFACESTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADTEXTINTERFACESTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_TEXTINTERFACES" name="AD_TEXTINTERFACESTRL">
         <reference local="AD_TEXTINTERFACES_ID" foreign="AD_TEXTINTERFACES_ID"/>
       </foreign-key>
@@ -28,7 +28,7 @@
         <index-column name="AD_LANGUAGE"/>
         <index-column name="AD_TEXTINTERFACES_ID"/>
       </index>
-      <check name="ADTEXTTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTEXTTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADTEXTTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTEXTTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TREE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TREE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,7 +23,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="ADTREE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADTREE_ISALLNODES_CHECK" condition="IsAllNodes in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADTREE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADTREE_ISALLNODES_CHECK" condition="ISALLNODES IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TREEBAR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TREEBAR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <foreign-key foreignTable="AD_USER" name="ADUSER_ADTREEBAR" onDelete="cascade">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
-      <check name="AD_TREEBAR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TREEBAR_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TREENODE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TREENODE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <index name="AD_TREENODE_PARENTID" unique="false">
         <index-column name="PARENT_ID"/>
       </index>
-      <check name="AD_TREENODE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TREENODE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TREENODEBP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TREENODEBP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <index name="AD_TREENODEBP_PARENT" unique="false">
         <index-column name="PARENT_ID"/>
       </index>
-      <check name="AD_TREENODEBP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TREENODEBP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TREENODEMM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TREENODEMM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <index name="AD_TREENODEMM_PARENT" unique="false">
         <index-column name="PARENT_ID"/>
       </index>
-      <check name="AD_TREENODEMM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TREENODEMM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_TREENODEPR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_TREENODEPR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <index name="AD_TREENODEPR_PARENT" unique="false">
         <index-column name="PARENT_ID"/>
       </index>
-      <check name="AD_TREENODEPR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_TREENODEPR_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_USER.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_USER.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -45,24 +45,24 @@
       <foreign-key foreignTable="AD_LANGUAGE" name="ADLANGUAGE_ADUSERDEFAULT">
         <reference local="DEFAULT_AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_ADUSER">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADUSERDEFAULT">
         <reference local="DEFAULT_AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_ADUSER">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADUSERDEFAULT">
         <reference local="DEFAULT_AD_ROLE_ID" foreign="AD_ROLE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_USER" name="ADUSER_SUPERVISOR">
+        <reference local="SUPERVISOR_ID" foreign="AD_USER_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="AD_USER_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_USER_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_USER" name="ADUSER_SUPERVISOR">
-        <reference local="SUPERVISOR_ID" foreign="AD_USER_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_ADUSER">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
@@ -75,12 +75,12 @@
       <foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSE_ADUSERDEFAULT">
         <reference local="DEFAULT_M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="PA_GOAL" name="PAGOALPRIVATE_ADUSER">
+        <reference local="PA_GOALPRIVATE_ID" foreign="PA_GOAL_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="PA_GOAL" name="PAGOAL_ADUSER">
         <reference local="PA_GOAL_ID" foreign="PA_GOAL_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="PA_GOAL" name="PAGOALPRIVATE_ADUSER">
-        <reference local="PA_GOALPRIVATE_ID" foreign="PA_GOAL_ID"/>
-      </foreign-key>
       <index name="AD_USER_EMAIL" unique="false">
         <index-column name="EMAIL"/>
       </index>
@@ -91,6 +91,6 @@
       <unique name="AD_USER_UN_USERNAME">
         <unique-column name="USERNAME"/>
       </unique>
-      <check name="AD_USER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_USER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_USERDEF_FIELD.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_USERDEF_FIELD.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -34,10 +34,10 @@
       <foreign-key foreignTable="AD_USERDEF_TAB" name="ADUSERDEFTAB_ADUSERDEFFIELD">
         <reference local="AD_USERDEF_TAB_ID" foreign="AD_USERDEF_TAB_ID"/>
       </foreign-key>
-      <check name="ADUSERDEFFIELD_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFFIELD_ISDISPLAY_CHECK" condition="IsDisplayed in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFFIELD_ISUPDATE_CHECK" condition="IsUpdateable in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFFIELD_READONLY_CHECK" condition="IsReadOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFFIELD_SAMELINE_CHECK" condition="IsSameLine in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADUSERDEFFIELD_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFFIELD_ISDISPLAY_CHECK" condition="ISDISPLAYED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFFIELD_ISUPDATE_CHECK" condition="ISUPDATEABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFFIELD_READONLY_CHECK" condition="ISREADONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFFIELD_SAMELINE_CHECK" condition="ISSAMELINE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_USERDEF_TAB.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_USERDEF_TAB.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,8 +28,8 @@
       <foreign-key foreignTable="AD_USERDEF_WIN" name="ADUSERDEFWIN_ADUSERDEFTAB">
         <reference local="AD_USERDEF_WIN_ID" foreign="AD_USERDEF_WIN_ID"/>
       </foreign-key>
-      <check name="ADUSERDEFTAB_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFTAB_ISREADONLY_CHECK" condition="IsReadOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFTAB_ISSINGLEROW_CHECK" condition="IsSingleRow in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADUSERDEFTAB_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFTAB_ISREADONLY_CHECK" condition="ISREADONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFTAB_ISSINGLEROW_CHECK" condition="ISSINGLEROW IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_USERDEF_WIN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_USERDEF_WIN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -33,8 +33,8 @@
       <foreign-key foreignTable="AD_WINDOW" name="ADWINDOW_ADUSERDEFWIN">
         <reference local="AD_WINDOW_ID" foreign="AD_WINDOW_ID"/>
       </foreign-key>
-      <check name="ADUSERDEFWIN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFWIN_IS_DATEABLE_CHECK" condition="IsUserUpdateable in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADUSERDEFWIN_ISREADONLY_CHECK" condition="IsReadOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADUSERDEFWIN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFWIN_ISREADONLY_CHECK" condition="ISREADONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADUSERDEFWIN_IS_DATEABLE_CHECK" condition="ISUSERUPDATEABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_USER_ROLES.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_USER_ROLES.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -13,15 +13,15 @@
       <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADUSERROLES" onDelete="cascade">
         <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_USER" name="ADUSER_USERROLES" onDelete="cascade">
+        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="AD_USERROLESCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_USERROLESORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_USER" name="ADUSER_USERROLES" onDelete="cascade">
-        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
-      </foreign-key>
-      <check name="AD_USER_ROLES_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_USER_ROLES_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_VAL_RULE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_VAL_RULE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
       <foreign-key foreignTable="AD_ORG" name="VAL_RULEORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AD_VAL_RULE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_VAL_RULE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WF_INSTANCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WF_INSTANCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,6 +26,6 @@
       <index name="AD_WF_INSTANCE_WORKFLOW" unique="false">
         <index-column name="AD_WORKFLOW_ID"/>
       </index>
-      <check name="AD_WF_INSTANCE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_WF_INSTANCE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WF_NODE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WF_NODE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -50,7 +50,7 @@
       <index name="AD_WF_NODE_WORKFLOW" unique="false">
         <index-column name="AD_WORKFLOW_ID"/>
       </index>
-      <check name="ADWFNODE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWFNODE_ISCENTMAINT_CHECK" condition="IsCentrallyMaintained in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWFNODE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWFNODE_ISCENTMAINT_CHECK" condition="ISCENTRALLYMAINTAINED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WF_NODENEXT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WF_NODENEXT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <foreign-key foreignTable="AD_ORG" name="WF_NODENEXTORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ADWFNODENEXT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWFNODENEXT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WF_NODE_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WF_NODE_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,12 +17,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADWFNODETRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADWFNODETRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_WFNODETRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADWFNODETRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_WF_NODE" name="AD_WFNODETRL" onDelete="cascade">
         <reference local="AD_WF_NODE_ID" foreign="AD_WF_NODE_ID"/>
       </foreign-key>
@@ -30,7 +30,7 @@
         <index-column name="AD_WF_NODE_ID"/>
         <index-column name="AD_LANGUAGE"/>
       </index>
-      <check name="ADWFNODETRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWFNODETRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWFNODETRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWFNODETRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WINDOW.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WINDOW.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -35,7 +35,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="ADWINDOW_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWINDOW_ISSOTRX_CHECK" condition="IsSOTrx in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWINDOW_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWINDOW_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WINDOW_ACCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WINDOW_ACCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -11,23 +11,23 @@
       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="ISREADWRITE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
-      <foreign-key foreignTable="AD_CLIENT" name="AD_FUNCTACCESS_CLIENT">
-        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="AD_FUNCTACCESSORG">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADWINDOWACCESS" onDelete="cascade">
         <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_WINDOW" name="ADWINDOW_ADWINDOWACCESS" onDelete="cascade">
         <reference local="AD_WINDOW_ID" foreign="AD_WINDOW_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="AD_FUNCTACCESSORG">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_CLIENT" name="AD_FUNCTACCESS_CLIENT">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
       <index name="AD_WINDOW_ACCESS_UN_KEY" unique="true">
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_WINDOW_ID"/>
       </index>
-      <check name="ADWINDOWACCESS_EADWRITE_CHECK" condition="IsReadWrite in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWINDOWACCESS_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWINDOWACCESS_EADWRITE_CHECK" condition="ISREADWRITE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWINDOWACCESS_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WINDOW_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WINDOW_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,16 +17,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADWINDOWTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADWINDOWTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_WINDOWTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADWINDOWTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_WINDOW" name="AD_WINDOWTRL" onDelete="cascade">
         <reference local="AD_WINDOW_ID" foreign="AD_WINDOW_ID"/>
       </foreign-key>
-      <check name="ADWINDOWTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWINDOWTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWINDOWTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWINDOWTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WORKBENCH.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WORKBENCH.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -35,6 +35,6 @@
       <foreign-key foreignTable="PA_GOAL" name="PAGOAL_ADWORKBENCH">
         <reference local="PA_GOAL_ID" foreign="PA_GOAL_ID"/>
       </foreign-key>
-      <check name="AD_WORKBENCH_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_WORKBENCH_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WORKBENCHWINDOW.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WORKBENCHWINDOW.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -38,7 +38,7 @@
       <foreign-key foreignTable="AD_WORKBENCH" name="ADWORKBENCH_ADWORKBENCHWINDOW">
         <reference local="AD_WORKBENCH_ID" foreign="AD_WORKBENCH_ID"/>
       </foreign-key>
-      <check name="ADWORKBENCHW_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWORKBENCHW_ISPRIMARY_CHECK" condition="IsPrimary in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWORKBENCHW_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWORKBENCHW_ISPRIMARY_CHECK" condition="ISPRIMARY IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WORKBENCH_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WORKBENCH_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="AD_WORKBENCH" name="ADWORKBENCH_ADWORKBENCHTRL">
         <reference local="AD_WORKBENCH_ID" foreign="AD_WORKBENCH_ID"/>
       </foreign-key>
-      <check name="ADWORKBTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWORKBTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWORKBTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWORKBTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WORKFLOW.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WORKFLOW.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,6 +28,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="AD_WORKFLOW_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AD_WORKFLOW_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WORKFLOW_ACCESS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WORKFLOW_ACCESS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -14,20 +14,20 @@
       <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADWORKFLOWACCESS" onDelete="cascade">
         <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_WORKFLOW" name="ADWORKFOW_WORKFLOWACCESS" onDelete="cascade">
+        <reference local="AD_WORKFLOW_ID" foreign="AD_WORKFLOW_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="AD_WORKFLOWACCESS_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_WORKFLOWACCESS_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_WORKFLOW" name="ADWORKFOW_WORKFLOWACCESS" onDelete="cascade">
-        <reference local="AD_WORKFLOW_ID" foreign="AD_WORKFLOW_ID"/>
-      </foreign-key>
       <index name="AD_WORKFLOW_ACCESS_UN_KEY" unique="true">
         <index-column name="AD_ROLE_ID"/>
         <index-column name="AD_WORKFLOW_ID"/>
       </index>
-      <check name="ADWORKFLOWAC_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWORKFLOWAC_ISREADWRITE_CHECK" condition="IsReadWrite in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWORKFLOWAC_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWORKFLOWAC_ISREADWRITE_CHECK" condition="ISREADWRITE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AD_WORKFLOW_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AD_WORKFLOW_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,16 +17,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADWORKFLOWTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ADWORKFLOWTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_WORKFLOWTRL">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ADWORKFLOWTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_WORKFLOW" name="AD_WORKFLOWTRL" onDelete="cascade">
         <reference local="AD_WORKFLOW_ID" foreign="AD_WORKFLOW_ID"/>
       </foreign-key>
-      <check name="ADWORKFLOWTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ADWORKFLOWTRL_ISTRANS_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ADWORKFLOWTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ADWORKFLOWTRL_ISTRANS_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AT_COMMAND.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AT_COMMAND.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,12 +28,12 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_ATCOMMAND">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ATCOMMAND_HASPREFIX_CHECK" condition="HAS_PREFIX IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATCOMMAND_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATCOMMANDLINEINTERCH_CHECK" condition="LINE_INTERCHANGE IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATCOMMAND_REMFRAME_CHECK" condition="REMEMBER_FRAME IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATCOMMAND_REMTAB_CHECK" condition="REMEMBER_TAB IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATCOMMAND_REMWINDOW_CHECK" condition="REMEMBER_WINDOW IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATCOMMAND_WRITEABLE_CHECK" condition="CHECK_WRITEABLE IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ATCOMMANDLINEINTERCH_CHECK" condition="LINE_INTERCHANGE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATCOMMAND_HASPREFIX_CHECK" condition="HAS_PREFIX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATCOMMAND_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATCOMMAND_REMFRAME_CHECK" condition="REMEMBER_FRAME IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATCOMMAND_REMTAB_CHECK" condition="REMEMBER_TAB IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATCOMMAND_REMWINDOW_CHECK" condition="REMEMBER_WINDOW IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATCOMMAND_WRITEABLE_CHECK" condition="CHECK_WRITEABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AT_COMMAND_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AT_COMMAND_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -19,16 +19,16 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ATCOMMANDTRL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_ATCOMMANDTRL">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_ATCOMMAND">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_ATCOMMANDTRL">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AT_COMMAND" name="AT_COMMANDTRL">
         <reference local="AT_COMMAND_ID" foreign="AT_COMMAND_ID"/>
       </foreign-key>
-      <check name="ATCOMMANDTRL_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATCOMMANDTRL_IS_ANSLATED_CHECK" condition="IsTranslated IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ATCOMMANDTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATCOMMANDTRL_IS_ANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AT_LINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AT_LINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -36,6 +36,6 @@
       <foreign-key foreignTable="AT_TEST" name="CHILD_TEST_ATLINE">
         <reference local="CHILD_TEST" foreign="AT_TEST_ID"/>
       </foreign-key>
-      <check name="AT_LINE_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AT_LINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AT_ROLLOGIN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AT_ROLLOGIN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
       <foreign-key foreignTable="AT_TEST" name="AT_TEST_ATROLLOGIN">
         <reference local="AT_TEST_ID" foreign="AT_TEST_ID"/>
       </foreign-key>
-      <check name="AT_ROLLOGIN_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AT_ROLLOGIN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AT_TEST.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AT_TEST.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,6 +29,6 @@
       <foreign-key foreignTable="AT_ROLLOGIN" name="ATROLLOGIN_ATTEST">
         <reference local="AT_ROLLOGIN_ID" foreign="AT_ROLLOGIN_ID"/>
       </foreign-key>
-      <check name="AT_TEST_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AT_TEST_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AT_TESTDOCUMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AT_TESTDOCUMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -32,9 +32,9 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_ATTESTDOCUMENT">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="ATTESTDOCUMENT_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATTESTDOCUMENT_LINEINTER_CHECK" condition="LINE_INTERCHANGER IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATTESTDOCUMENT_ODUCTION_CHECK" condition="INTRODUCTION IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="ATTESTDOCUMENT_PREFIX_CHECK" condition="PREFIX IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ATTESTDOCUMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATTESTDOCUMENT_LINEINTER_CHECK" condition="LINE_INTERCHANGER IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATTESTDOCUMENT_ODUCTION_CHECK" condition="INTRODUCTION IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ATTESTDOCUMENT_PREFIX_CHECK" condition="PREFIX IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/AT_TESTDOCUMENTLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/AT_TESTDOCUMENTLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,16 +28,16 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_ATTESTDOCUMENTLINE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AT_TESTDOCUMENT" name="ATTESTDOCUMENT_TESTDOCLINE">
+        <reference local="AT_TESTDOCUMENT_ID" foreign="AT_TESTDOCUMENT_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AT_COMMAND" name="AT_COMMAND_ATTESTDOCUMENTLINE">
         <reference local="AT_COMMAND_ID" foreign="AT_COMMAND_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AT_TESTDOCUMENT" name="ATTESTDOCUMENT_TESTDOCLINE">
-        <reference local="AT_TESTDOCUMENT_ID" foreign="AT_TESTDOCUMENT_ID"/>
-      </foreign-key>
       <unique name="AT_TESTDOCUMENTLINE_UNIQUE">
         <unique-column name="AT_TESTDOCUMENT_ID"/>
         <unique-column name="AT_COMMAND_ID"/>
       </unique>
-      <check name="AT_TESTDOCL_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AT_TESTDOCL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_AMORTIZATION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_AMORTIZATION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,6 +25,15 @@
       <column name="C_CURRENCY_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="POSTING" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
       <column name="TOTALAMORTIZATION" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
+      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_AAMORTIZATION">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="A_AMORTIZATION_ORG">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_CURRENCY" name="A_AMORTIZATIO_CURRENCY">
+        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_ACTIVITY" name="A_AMORTIZA_ACTIVITY">
         <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
       </foreign-key>
@@ -34,15 +43,6 @@
       <foreign-key foreignTable="C_PROJECT" name="A_AMORTIZA_PROJECT">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_CURRENCY" name="A_AMORTIZATIO_CURRENCY">
-        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="A_AMORTIZATION_ORG">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_AAMORTIZATION">
-        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
-      </foreign-key>
-      <check name="A_AMORTIZATION_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_AMORTIZATION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_AMORTIZATIONLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_AMORTIZATIONLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -15,6 +15,12 @@
       <column name="AMORTIZATION_PORCENTAGE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
       <column name="AMORTIZATIONAMT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
       <column name="C_CURRENCY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
+      <foreign-key foreignTable="A_ASSET" name="AASSET_AAMORTIZATIONLINE">
+        <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_AAMORTIZATIONLINE">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="A_AMORTIZATION" name="A_AMORTIZALINE_AMORTIZA">
         <reference local="A_AMORTIZATION_ID" foreign="A_AMORTIZATION_ID"/>
       </foreign-key>
@@ -24,12 +30,6 @@
       <foreign-key foreignTable="AD_ORG" name="A_AMORTIZATIONLINE_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="A_ASSET" name="AASSET_AAMORTIZATIONLINE">
-        <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_AAMORTIZATIONLINE">
-        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
-      </foreign-key>
-      <check name="A_AMORTIZATIONL_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_AMORTIZATIONL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -60,12 +60,6 @@
       <column name="DEPRECIATEDPLAN" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
       <column name="DEPRECIATEDPREVIOUSAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/>
       <column name="DEPRECIATEDVALUE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
-      <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="A_ASSET_ATTRIBUTESETINSTANCE">
-        <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_CURRENCY" name="A_ASSET_CURRENCY">
-        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="A_ASSET_GROUP" name="AASSETGROUP_AASSET">
         <reference local="A_ASSET_GROUP_ID" foreign="A_ASSET_GROUP_ID"/>
       </foreign-key>
@@ -78,6 +72,12 @@
       <foreign-key foreignTable="AD_USER" name="ADUSER_AASSET">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="A_ASSET_ATTRIBUTESETINSTANCE">
+        <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_CURRENCY" name="A_ASSET_CURRENCY">
+        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_AASSET">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
@@ -93,9 +93,9 @@
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_AASSET">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="AASSET_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="AASSET_ISDISPOSED_CHECK" condition="IsDisposed in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="AASSET_ISINPOSESSION_CHECK" condition="IsInPosession in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="AASSET_ISOWNED_CHECK" condition="IsOwned in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AASSET_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="AASSET_ISDISPOSED_CHECK" condition="ISDISPOSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="AASSET_ISINPOSESSION_CHECK" condition="ISINPOSESSION IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="AASSET_ISOWNED_CHECK" condition="ISOWNED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -38,6 +38,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="CVALIDCOMBINATION_AASSETACCT3">
         <reference local="A_ACCUMDEPRECIATION_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="A_ASSET_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_ASSET_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_ADDITION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_ADDITION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -18,6 +18,6 @@
       <foreign-key foreignTable="C_INVOICELINE" name="CINVOICELINE_AASSETADDITION">
         <reference local="C_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
       </foreign-key>
-      <check name="A_ASSET_ADDITIO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_ASSET_ADDITIO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_CHANGE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_CHANGE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,6 +31,6 @@
       <foreign-key foreignTable="A_ASSET" name="REFA_ASSET1651">
         <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
       </foreign-key>
-      <check name="A_ASSET_CHANGE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_ASSET_CHANGE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_CHANGE_AMT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_CHANGE_AMT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_AASSETCHANGEAMT">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
-      <check name="ASSETCHAMT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="ASSETCHAMT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_DELIVERY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_DELIVERY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -39,6 +39,6 @@
       <foreign-key foreignTable="M_INOUTLINE" name="MOUTLINE_AASSETDELIVERY" onDelete="cascade">
         <reference local="M_INOUTLINE_ID" foreign="M_INOUTLINE_ID"/>
       </foreign-key>
-      <check name="A_ASSET_DELIVER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_ASSET_DELIVER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_GROUP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_GROUP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,7 +20,7 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_AASSETGROUP">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="AASSETGROUP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="AASSETGROUP_ISOWNED_CHECK" condition="IsOwned in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="AASSETGROUP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="AASSETGROUP_ISOWNED_CHECK" condition="ISOWNED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_GROUP_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_GROUP_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,9 +27,6 @@
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_AASSETGROUPACCT">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_VALIDCOMBINATION" name="CVALIDCOMBINATION_AASSETGROUPA">
-        <reference local="A_DISPOSAL_GAIN" foreign="C_VALIDCOMBINATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="CVALIDCOMBINATION_AASSETGROUP1">
         <reference local="A_DEPRECIATION_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
@@ -39,6 +36,9 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="CVALIDCOMBINATION_AASSETGROUP3">
         <reference local="A_DISPOSAL_LOSS" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="A_ASSET_GROUP_A_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="CVALIDCOMBINATION_AASSETGROUPA">
+        <reference local="A_DISPOSAL_GAIN" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
+      <check name="A_ASSET_GROUP_A_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_RETIREMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_RETIREMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,6 +25,6 @@
       <foreign-key foreignTable="C_INVOICELINE" name="CINVOICELINE_AASSETRETIREMENT">
         <reference local="C_INVOICELINE_ID" foreign="C_INVOICELINE_ID"/>
       </foreign-key>
-      <check name="A_ASSET_RETIREM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_ASSET_RETIREM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_ASSET_USE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_ASSET_USE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,6 +16,6 @@
       <foreign-key foreignTable="A_ASSET" name="AASSET_AASSETUSE">
         <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
       </foreign-key>
-      <check name="A_ASSET_USE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_ASSET_USE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/A_DEPRECIATION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/A_DEPRECIATION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -19,6 +19,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADEPRECIATION">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="A_DEPRECIATION_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="A_DEPRECIATION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ACCTSCHEMA.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ACCTSCHEMA.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,22 +30,22 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_C_ACCTSCHEMA">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_CACCTSCHEMA">
+        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_C_ACCTSCHEMA">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_CACCTSCHEMA">
-        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
-      </foreign-key>
       <unique name="C_ACCTSCHEMA_NAME">
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="CACCTSCHEMA_AUTOPERCONT_CHECK" condition="AutoPeriodControl in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMA_HASALIAS_CHECK" condition="HasAlias in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMA_HASCOMBINAT_CHECK" condition="HasCombination in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMA_ISACCRUAL_CHECK" condition="IsAccrual in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMA_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMA_ISDISCCORTAX_CHECK" condition="IsDiscountCorrectsTax in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMA_ISTRADPOSTED_CHECK" condition="IsTradeDiscountPosted in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CACCTSCHEMA_AUTOPERCONT_CHECK" condition="AUTOPERIODCONTROL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMA_HASALIAS_CHECK" condition="HASALIAS IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMA_HASCOMBINAT_CHECK" condition="HASCOMBINATION IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMA_ISACCRUAL_CHECK" condition="ISACCRUAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMA_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMA_ISDISCCORTAX_CHECK" condition="ISDISCOUNTCORRECTSTAX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMA_ISTRADPOSTED_CHECK" condition="ISTRADEDISCOUNTPOSTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ACCTSCHEMA_DEFAULT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -163,12 +163,12 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_EPREPAYMENT_CSCHEMADEFAULT">
         <reference local="E_PREPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDRECEIPTS_CSCHEMA">
+        <reference local="NOTINVOICEDRECEIPTS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDREC_CSCHEMADEFAU">
         <reference local="NOTINVOICEDRECEIVABLES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDRECEIPTS_CSCHEMA">
-        <reference local="NOTINVOICEDRECEIPTS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDREVENUE_CSCHEMAD">
         <reference local="NOTINVOICEDREVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
@@ -238,12 +238,12 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_UNREALIZEDLOSS_CSCHEMADEFAU">
         <reference local="UNREALIZEDLOSS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITYSERVICES_CSCHEMAD">
+        <reference local="V_LIABILITY_SERVICES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITY_CSCHEMADEFAULT">
         <reference local="V_LIABILITY_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITYSERVICES_CSCHEMAD">
-        <reference local="V_LIABILITY_SERVICES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VPREPAYMENT_CSCHEMADEFAULT">
         <reference local="V_PREPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
@@ -265,6 +265,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_WRITEOFF_CSCHEMADEFAULT">
         <reference local="WRITEOFF_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_ACCTSCHEMA_DE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_ACCTSCHEMA_DE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ACCTSCHEMA_ELEMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ACCTSCHEMA_ELEMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,12 +28,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CASCHEMAELEMENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGID_C_ASCHEMAELEMENT">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_CASCHEMAELEMENT">
         <reference local="ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGID_C_ASCHEMAELEMENT">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CASCHEMAELEMENT" onDelete="cascade">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
@@ -43,12 +43,12 @@
       <foreign-key foreignTable="C_BPARTNER" name="CBUSPARTNER_CASCHEMAELEMENT">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CASCHEMAELEMENT">
+        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_ELEMENT" name="CELEMENT_CASCHEMAELEMENT">
         <reference local="C_ELEMENT_ID" foreign="C_ELEMENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CASCHEMAELEMENT">
-        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_LOCATION" name="CLOCATION_CASCHEMAELEMENT">
         <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
       </foreign-key>
@@ -67,8 +67,8 @@
       <index name="C_ACCTSCHEMA_ELEMENT_SCHEMA" unique="false">
         <index-column name="C_ACCTSCHEMA_ID"/>
       </index>
-      <check name="CACCTSCHEL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEL_ISBALANCED_CHECK" condition="IsBalanced in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEL_ISMANDATORY_CHECK" condition="IsMandatory in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CACCTSCHEL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEL_ISBALANCED_CHECK" condition="ISBALANCED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEL_ISMANDATORY_CHECK" condition="ISMANDATORY IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ACCTSCHEMA_GL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ACCTSCHEMA_GL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -54,9 +54,9 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_SUSPENSEERROR_CSCHEMAGL">
         <reference local="SUSPENSEERROR_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="CACCTSCHEMAGL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMAGL_USECURBAL_CHECK" condition="UseCurrencyBalancing in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMAGL_USESUSPENB_CHECK" condition="UseSuspenseBalancing in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CACCTSCHEMAGL_U_SPEERROR_CHECK" condition="UseSuspenseError in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CACCTSCHEMAGL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMAGL_USECURBAL_CHECK" condition="USECURRENCYBALANCING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMAGL_USESUSPENB_CHECK" condition="USESUSPENSEBALANCING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CACCTSCHEMAGL_U_SPEERROR_CHECK" condition="USESUSPENSEERROR IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ACCTSCHEMA_TABLE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ACCTSCHEMA_TABLE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,6 +28,6 @@
         <unique-column name="C_ACCTSCHEMA_ID"/>
         <unique-column name="AD_TABLE_ID"/>
       </unique>
-      <check name="C_ACCTSCHEMA_TA_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_ACCTSCHEMA_TA_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ACTIVITY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ACTIVITY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="C_ACTIVITY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_ACTIVITY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_APPROVAL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_APPROVAL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,9 +28,9 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="CAPPROVAL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CAPPROVAL_ISAMO_APPROVED_CHECK" condition="IsAmountApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CAPPROVAL_ISPRO_APPROVED_CHECK" condition="IsProductAttributeApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CAPPROVAL_ISWOR_APPROVED_CHECK" condition="IsWorkflowApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CAPPROVAL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CAPPROVAL_ISAMO_APPROVED_CHECK" condition="ISAMOUNTAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CAPPROVAL_ISPRO_APPROVED_CHECK" condition="ISPRODUCTATTRIBUTEAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CAPPROVAL_ISWOR_APPROVED_CHECK" condition="ISWORKFLOWAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BANK.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BANK.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,7 +31,7 @@
       <foreign-key foreignTable="C_LOCATION" name="CLOCATION_CBANK">
         <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
       </foreign-key>
-      <check name="CBANK_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBANK_ISOWNBANK_CHECK" condition="IsOwnBank in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CBANK_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBANK_ISOWNBANK_CHECK" condition="ISOWNBANK IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BANKACCOUNT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BANKACCOUNT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -34,6 +34,6 @@
       <index name="C_BANKACCT_BANK" unique="false">
         <index-column name="C_BANK_ID"/>
       </index>
-      <check name="C_BANKACCOUNT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BANKACCOUNT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BANKACCOUNTDOC.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BANKACCOUNTDOC.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,6 +27,6 @@
       <foreign-key foreignTable="C_BANKACCOUNT" name="CBANKACCOUNT_CBADOC" onDelete="cascade">
         <reference local="C_BANKACCOUNT_ID" foreign="C_BANKACCOUNT_ID"/>
       </foreign-key>
-      <check name="C_BANKACCOUNTDO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BANKACCOUNTDO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BANKACCOUNT_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BANKACCOUNT_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -70,6 +70,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_BUNIDENTIFIED_CBANKACCOUNT">
         <reference local="B_UNIDENTIFIED_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_BANKACCOUNT_A_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BANKACCOUNT_A_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BANKSTATEMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BANKSTATEMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -33,9 +33,9 @@
       <index name="C_BANKSTMT_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
-      <check name="C_BANKSTATEMENT_EATEFROM_CHECK" condition="CreateFrom in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_BANKSTATEMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_BANKSTATEMENT_ISMANUAL_CHECK" condition="IsManual in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_BANKSTATEMENT_ROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BANKSTATEMENT_EATEFROM_CHECK" condition="CREATEFROM IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_BANKSTATEMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_BANKSTATEMENT_ISMANUAL_CHECK" condition="ISMANUAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_BANKSTATEMENT_ROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BANKSTATEMENTLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BANKSTATEMENTLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -50,7 +50,7 @@
       <index name="C_BANKSTMTLINE_BANKSTMT" unique="false">
         <index-column name="C_BANKSTATEMENT_ID"/>
       </index>
-      <check name="C_BANKSTATLN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_BANKSTATLN_ISREVERSAL_CHECK" condition="IsReversal in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BANKSTATLN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_BANKSTATLN_ISREVERSAL_CHECK" condition="ISREVERSAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BPARTNER.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BPARTNER.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -87,12 +87,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CBPARTNER">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORG_CBPARTNER">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_LANGUAGE" name="AD_LANGUAGE_C_BUSPARTNER">
         <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_CBPARTNER">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BP_TAXCATEGORY" name="BP_CBPTAXCATEGORYPO">
         <reference local="PO_BP_TAXCATEGORY_ID" foreign="C_BP_TAXCATEGORY_ID"/>
       </foreign-key>
@@ -102,9 +102,6 @@
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_CPBARTNERPARENT">
         <reference local="BPARTNER_PARENT_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="M_WH_SCHEDULE" name="C_BPARTNER_SCHEDULE">
-        <reference local="M_WH_SCHEDULE_ID" foreign="M_WH_SCHEDULE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BP_GROUP" name="CBPGROUP_CBPARTNER">
         <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
       </foreign-key>
@@ -123,24 +120,27 @@
       <foreign-key foreignTable="C_PAYMENTTERM" name="CPOPAYMENTTERM_CBPARTNER">
         <reference local="PO_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="M_WH_SCHEDULE" name="C_BPARTNER_SCHEDULE">
+        <reference local="M_WH_SCHEDULE_ID" foreign="M_WH_SCHEDULE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_SALARY_CATEGORY" name="C_SALARY_CATEGORY_CBPARTNER">
         <reference local="C_SALARY_CATEGORY_ID" foreign="C_SALARY_CATEGORY_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="FORCEDORG_CBPARTNER">
         <reference local="AD_FORCED_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="M_DISCOUNTSCHEMA" name="MDISCOUNTSPO_CBPARTNER">
+        <reference local="PO_DISCOUNTSCHEMA_ID" foreign="M_DISCOUNTSCHEMA_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_DISCOUNTSCHEMA" name="MDISCOUNTS_CBPARTNER">
         <reference local="M_DISCOUNTSCHEMA_ID" foreign="M_DISCOUNTSCHEMA_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="M_DISCOUNTSCHEMA" name="MDISCOUNTSPO_CBPARTNER">
-        <reference local="PO_DISCOUNTSCHEMA_ID" foreign="M_DISCOUNTSCHEMA_ID"/>
+      <foreign-key foreignTable="M_PRICELIST" name="MPRICELISTPO_CBUSPARTNER" onDelete="setnull">
+        <reference local="PO_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
       <foreign-key foreignTable="M_PRICELIST" name="MPRICELIST_CBPARTNER" onDelete="setnull">
         <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="M_PRICELIST" name="MPRICELISTPO_CBUSPARTNER" onDelete="setnull">
-        <reference local="PO_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BANKACCOUNT" name="POBACKACCOUTN_CBPARTNER">
         <reference local="PO_BANKACCOUNT_ID" foreign="C_BANKACCOUNT_ID"/>
       </foreign-key>
@@ -154,17 +154,17 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="CBPARTNER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISCUSTOMER_CHECK" condition="IsCustomer in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISDIS_TPRINTED_CHECK" condition="IsDiscountPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISEMPLOYEE_CHECK" condition="IsEmployee in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISONETIME_CHECK" condition="IsOneTime in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISPROSPECT_CHECK" condition="IsProspect in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISSALESREP_CHECK" condition="IsSalesRep in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISSUMMARY_CHECK" condition="IsSummary in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISTAXEXEMPT_CHECK" condition="IsTaxExempt in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTNER_ISVENDOR_CHECK" condition="IsVendor in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CBPARTNER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISCUSTOMER_CHECK" condition="ISCUSTOMER IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISDIS_TPRINTED_CHECK" condition="ISDISCOUNTPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISEMPLOYEE_CHECK" condition="ISEMPLOYEE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISONETIME_CHECK" condition="ISONETIME IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISPROSPECT_CHECK" condition="ISPROSPECT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISSALESREP_CHECK" condition="ISSALESREP IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISSUMMARY_CHECK" condition="ISSUMMARY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISTAXEXEMPT_CHECK" condition="ISTAXEXEMPT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTNER_ISVENDOR_CHECK" condition="ISVENDOR IN (&apos;Y&apos;, &apos;N&apos;)"/>
       <check name="CBPARTNER_SHOWPRICE_CHECK" condition="SHOWPRICEINORDER IN (&apos;Y&apos;, &apos;N&apos;)"/>
-      <check name="INVOICERULE_CK_CBPARTNER" condition="INVOICERULE &lt;&gt;&apos;S&apos; OR C_INVOICESCHEDULE_ID IS NOT NULL"/>
+      <check name="INVOICERULE_CK_CBPARTNER" condition="(INVOICERULE &lt;&gt; &apos;S&apos;) OR (C_INVOICESCHEDULE_ID IS NOT NULL)"/>
     </table>
   </database>
--- a/database/model/tables/C_BPARTNER_LOCATION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BPARTNER_LOCATION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,28 +26,28 @@
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_CBPLOCATION" onDelete="cascade">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_LOCATION" name="CLOCATION_CBPLOCATION">
+        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_SALESREGION" name="CSALESREGION_BPARTNERLOCATION" onDelete="setnull">
+        <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="C_BUSPARTNER_LOCATIONCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="C_BUSPARTNER_LOCATIONORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_LOCATION" name="CLOCATION_CBPLOCATION">
-        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_SALESREGION" name="CSALESREGION_BPARTNERLOCATION" onDelete="setnull">
-        <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
-      </foreign-key>
       <index name="C_BPLOCATION_BPARTNER" unique="false">
         <index-column name="C_BPARTNER_ID"/>
       </index>
       <index name="C_BPLOCATION_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
-      <check name="CBPARTLOC_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTLOC_ISBILLTO_CHECK" condition="IsBillTo in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTLOC_ISPAYFROM_CHECK" condition="IsPayFrom in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTLOC_ISREMITTO_CHECK" condition="IsRemitTo in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPARTLOC_ISSHIPTO_CHECK" condition="IsShipTo in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CBPARTLOC_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTLOC_ISBILLTO_CHECK" condition="ISBILLTO IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTLOC_ISPAYFROM_CHECK" condition="ISPAYFROM IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTLOC_ISREMITTO_CHECK" condition="ISREMITTO IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPARTLOC_ISSHIPTO_CHECK" condition="ISSHIPTO IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_BANKACCOUNT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_BANKACCOUNT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -51,7 +51,7 @@
       <index name="C_BPBANKACCT_BPARTNER" unique="false">
         <index-column name="C_BPARTNER_ID"/>
       </index>
-      <check name="CBPBANKACCOUNT_ISACH_CHECK" condition="IsACH in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPBANKACCOUNT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CBPBANKACCOUNT_ISACH_CHECK" condition="ISACH IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPBANKACCOUNT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_CUSTOMER_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_CUSTOMER_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -38,6 +38,6 @@
         <unique-column name="STATUS"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>
-      <check name="C_BP_CUSTOMER_A_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BP_CUSTOMER_A_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_EDI.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_EDI.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -43,12 +43,12 @@
       <foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSE_CBPEDI">
         <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
       </foreign-key>
-      <check name="CBPEDI_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPEDI_ISAUDITED_CHECK" condition="IsAudited in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPEDI_ISINFOSENT_CHECK" condition="IsInfoSent in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPEDI_REINQUIRYREPLY_CHECK" condition="ReceiveInquiryReply in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPEDI_REORDERREPLY_CHECK" condition="ReceiveOrderReply in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPEDI_SENDINQUIRY_CHECK" condition="SendInquiry in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPEDI_SENDORDER_CHECK" condition="SendOrder in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CBPEDI_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPEDI_ISAUDITED_CHECK" condition="ISAUDITED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPEDI_ISINFOSENT_CHECK" condition="ISINFOSENT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPEDI_REINQUIRYREPLY_CHECK" condition="RECEIVEINQUIRYREPLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPEDI_REORDERREPLY_CHECK" condition="RECEIVEORDERREPLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPEDI_SENDINQUIRY_CHECK" condition="SENDINQUIRY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPEDI_SENDORDER_CHECK" condition="SENDORDER IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_EMPLOYEE_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_EMPLOYEE_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,6 +30,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_EPREPAYMENT_CBPEMPLOYEE">
         <reference local="E_PREPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_BP_EMPLOYEE_A_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BP_EMPLOYEE_A_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_GROUP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_GROUP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="C_BP_GROUP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BP_GROUP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_GROUP_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_GROUP_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -47,12 +47,12 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_CRECEIVABLE_CBPGROUP">
         <reference local="C_RECEIVABLE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDRECEIPTS_CBPGROU">
+        <reference local="NOTINVOICEDRECEIPTS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDREC_CBPGROUP">
         <reference local="NOTINVOICEDRECEIVABLES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDRECEIPTS_CBPGROU">
-        <reference local="NOTINVOICEDRECEIPTS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_NOTINVOICEDREVENUE_CBPGROUP">
         <reference local="NOTINVOICEDREVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
@@ -77,18 +77,18 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_UNREALIZEDLOSS_CBPGROUP">
         <reference local="UNREALIZEDLOSS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITYSERVICES_CBPGROUP">
+        <reference local="V_LIABILITY_SERVICES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITY_CBPGROUP">
         <reference local="V_LIABILITY_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITYSERVICES_CBPGROUP">
-        <reference local="V_LIABILITY_SERVICES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VPREPAYMENT_CBPGROUP">
         <reference local="V_PREPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_WRITEOFF_CBPGROUP">
         <reference local="WRITEOFF_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_BP_GROUP_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BP_GROUP_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_VENDOR_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_VENDOR_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,12 +27,12 @@
       <foreign-key foreignTable="C_BPARTNER" name="C_BUSPARTNER_C_BP_VENDOR_ACCT" onDelete="cascade">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITYSERVICES_CBPVENDO">
+        <reference local="V_LIABILITY_SERVICES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITY_CBPVENDOR">
         <reference local="V_LIABILITY_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VLIABILITYSERVICES_CBPVENDO">
-        <reference local="V_LIABILITY_SERVICES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_VPREPAYMENT_CBPVENDOR">
         <reference local="V_PREPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
@@ -42,6 +42,6 @@
         <unique-column name="AD_ORG_ID"/>
         <unique-column name="STATUS"/>
       </unique>
-      <check name="C_BP_VENDOR_ACC_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BP_VENDOR_ACC_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BP_WITHHOLDING.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BP_WITHHOLDING.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,8 +25,8 @@
       <foreign-key foreignTable="C_WITHHOLDING" name="CWITHHOLDING_CBPWITHHOLDING">
         <reference local="C_WITHHOLDING_ID" foreign="C_WITHHOLDING_ID"/>
       </foreign-key>
-      <check name="CBPWITHHOLDING_DHOLDING_CHECK" condition="IsMandatoryWithholding in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPWITHHOLDING_EMEXEMPT_CHECK" condition="IsTemporaryExempt in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CBPWITHHOLDING_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CBPWITHHOLDING_DHOLDING_CHECK" condition="ISMANDATORYWITHHOLDING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPWITHHOLDING_EMEXEMPT_CHECK" condition="ISTEMPORARYEXEMPT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CBPWITHHOLDING_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BUDGET.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BUDGET.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <foreign-key foreignTable="C_YEAR" name="BUDGETYEAR">
         <reference local="C_YEAR_ID" foreign="C_YEAR_ID"/>
       </foreign-key>
-      <check name="C_BUDGET_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BUDGET_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_BUDGETLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_BUDGETLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -33,27 +33,18 @@
       <foreign-key foreignTable="AD_CLIENT" name="AC_CLIENT_C_BUDGETLINE">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="AD_ORGTRX_C_BUDGETLINE">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_C_BUDGETLINE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="AD_ORGTRX_C_BUDGETLINE">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_BUDGETLINE">
         <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_BP_GROUP" name="C_BP_GROUP_C_BUDGETLINE">
-        <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BUDGET" name="CBUDGET_CBUDGETLINE">
         <reference local="C_BUDGET_ID" foreign="C_BUDGET_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_BPARTNER" name="C_BUSPARTNER_C_BUDGETLINE">
-        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_C_BUDGETLINE">
-        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER1_BUDGETLINE">
         <reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
       </foreign-key>
@@ -63,6 +54,15 @@
       <foreign-key foreignTable="C_PERIOD" name="CPERIOD_BUDGETLINE">
         <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_BP_GROUP" name="C_BP_GROUP_C_BUDGETLINE">
+        <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_BPARTNER" name="C_BUSPARTNER_C_BUDGETLINE">
+        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_C_BUDGETLINE">
+        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_C_BUDGETLINE">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
@@ -84,6 +84,6 @@
       <foreign-key foreignTable="C_CAMPAIGN" name="SO_CAMPAIGN_C_BUDGETLINE">
         <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
       </foreign-key>
-      <check name="C_BUDGETLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_BUDGETLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CALENDAR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CALENDAR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,6 +21,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="C_CALENDAR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CALENDAR_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CAMPAIGN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CAMPAIGN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,6 +29,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="C_CAMPAIGN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CAMPAIGN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CASH.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CASH.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -50,7 +50,7 @@
       <index name="C_CASH_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
-      <check name="CCASH_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCASH_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CCASH_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CCASH_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CASHBOOK.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CASHBOOK.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,6 +22,6 @@
       <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CCASHBOOK">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <check name="C_CASHBOOK_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CASHBOOK_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CASHBOOK_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CASHBOOK_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -42,6 +42,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_CBRECEIPT_CCASHBOOK">
         <reference local="CB_RECEIPT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_CASHBOOK_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CASHBOOK_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CASHLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CASHLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -51,8 +51,8 @@
       <unique name="C_CASHLINE_DEBT_PAYMENT">
         <unique-column name="C_DEBT_PAYMENT_ID"/>
       </unique>
-      <check name="CASHTYPE_CH_PAYMENT" condition="CASHTYPE &lt;&gt;&apos;P&apos; OR C_DEBT_PAYMENT_ID IS NOT NULL"/>
-      <check name="CCASHLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCASHLINE_ISGENERATED_CHECK" condition="IsGenerated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CASHTYPE_CH_PAYMENT" condition="(CASHTYPE &lt;&gt; &apos;P&apos;) OR (C_DEBT_PAYMENT_ID IS NOT NULL)"/>
+      <check name="CCASHLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CCASHLINE_ISGENERATED_CHECK" condition="ISGENERATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CHANNEL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CHANNEL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,6 +21,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="C_CHANNEL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CHANNEL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CHARGE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CHARGE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,8 +25,8 @@
       <foreign-key foreignTable="C_TAXCATEGORY" name="CTAXCATEGORY_CCHARGE">
         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
       </foreign-key>
-      <check name="CCHARGE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCHARGE_ISSAMECURRENCY_CHECK" condition="IsSameCurrency in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCHARGE_ISSAMETAX_CHECK" condition="IsSameTax in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CCHARGE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CCHARGE_ISSAMECURRENCY_CHECK" condition="ISSAMECURRENCY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CCHARGE_ISSAMETAX_CHECK" condition="ISSAMETAX IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CHARGE_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CHARGE_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,6 +30,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_CHREVENUE_CCHARGE">
         <reference local="CH_REVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_CHARGE_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CHARGE_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CITY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CITY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,18 +16,18 @@
       <column name="AREACODE" primaryKey="false" required="false" type="VARCHAR" size="10" autoIncrement="false"/>
       <column name="C_COUNTRY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="C_REGION_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
+      <foreign-key foreignTable="C_COUNTRY" name="CCOUNTRY_CCITY">
+        <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_REGION" name="CREGION_CCITY">
+        <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="C_CITYCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="C_CITYORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_COUNTRY" name="CCOUNTRY_CCITY">
-        <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_REGION" name="CREGION_CCITY">
-        <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
-      </foreign-key>
-      <check name="C_CITY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CITY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_COMMISSION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_COMMISSION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -35,8 +35,8 @@
       <foreign-key foreignTable="M_PRODUCT" name="M_PRODUCT_CCOMMISSION">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="CCOMMISSION_CREATEFROM_CHECK" condition="CreateFrom in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_COMMISSION_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCOMMISSION_LISTDETAILS_CHECK" condition="ListDetails in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CCOMMISSION_CREATEFROM_CHECK" condition="CREATEFROM IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CCOMMISSION_LISTDETAILS_CHECK" condition="LISTDETAILS IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_COMMISSION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_COMMISSIONAMT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_COMMISSIONAMT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -32,6 +32,6 @@
       <index name="C_COMMISSIONAMT_RUN" unique="false">
         <index-column name="C_COMMISSIONRUN_ID"/>
       </index>
-      <check name="C_COMMISSIONAMT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_COMMISSIONAMT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_COMMISSIONDETAIL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_COMMISSIONDETAIL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -36,6 +36,6 @@
       <foreign-key foreignTable="C_ORDERLINE" name="CORDERLINE_CCOMMISSIONDETAIL">
         <reference local="C_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
       </foreign-key>
-      <check name="C_COMMISSIONDET_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_COMMISSIONDET_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_COMMISSIONLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_COMMISSIONLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -51,8 +51,8 @@
       <index name="C_COMMISSIONLINE_COMMISSION" unique="false">
         <index-column name="C_COMMISSION_ID"/>
       </index>
-      <check name="CCOMMISL_ISPOSITIVEONLY_CHECK" condition="IsPositiveOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_COMMISSIONLIN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCOMNISL_COMMISRDERS_CHECK" condition="CommissionOrders in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CCOMMISL_ISPOSITIVEONLY_CHECK" condition="ISPOSITIVEONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CCOMNISL_COMMISRDERS_CHECK" condition="COMMISSIONORDERS IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_COMMISSIONLIN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_COMMISSIONRUN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_COMMISSIONRUN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,7 +29,7 @@
       <foreign-key foreignTable="C_INVOICE" name="C_INVOICE_CCOMMISSIONRUN">
         <reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
       </foreign-key>
-      <check name="C_COMMISRUN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_COMMISRUN_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_COMMISRUN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_COMMISRUN_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CONVERSION_RATE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CONVERSION_RATE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -16,15 +16,15 @@
       <column name="CONVERSIONRATETYPE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
       <column name="MULTIPLYRATE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
       <column name="DIVIDERATE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
+      <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CCONVERSIONRATE">
+        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="C_CONVERSION_RATECLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="C_CONVERSION_RATEORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CCONVERSIONRATE">
-        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCYCONVRATETO">
         <reference local="C_CURRENCY_ID_TO" foreign="C_CURRENCY_ID"/>
       </foreign-key>
@@ -36,6 +36,6 @@
         <unique-column name="CONVERSIONRATETYPE"/>
         <unique-column name="VALIDFROM"/>
       </unique>
-      <check name="C_CONVERSION_RA_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CONVERSION_RA_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_COUNTRY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_COUNTRY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,21 +28,21 @@
       <foreign-key foreignTable="C_COUNTRY" name="CCOUNTRY_CCOUNTRY">
         <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CCOUNTRY">
+        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="C_COUNTRYCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="C_COUNTRYORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CCOUNTRY">
-        <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
-      </foreign-key>
       <unique name="C_COUNTRYCODE">
         <unique-column name="COUNTRYCODE"/>
       </unique>
-      <check name="C_COUNTRY_HASPOSTAL_ADD_CHECK" condition="HasPostal_Add in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_COUNTRY_HASREGION_CHECK" condition="HasRegion in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_COUNTRY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_COUNTRY_ISDEFAULT_CHECK" condition="IsDefault in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_COUNTRY_HASPOSTAL_ADD_CHECK" condition="HASPOSTAL_ADD IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_COUNTRY_HASREGION_CHECK" condition="HASREGION IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_COUNTRY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_COUNTRY_ISDEFAULT_CHECK" condition="ISDEFAULT IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_COUNTRY_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_COUNTRY_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,7 +27,7 @@
       <foreign-key foreignTable="C_COUNTRY" name="CCOUNTRY_CCOUNTRYTRL">
         <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
       </foreign-key>
-      <check name="C_COUNTRY_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCOUNTRYTRL_ISTRANSL_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CCOUNTRYTRL_ISTRANSL_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_COUNTRY_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CURRENCY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CURRENCY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,8 +28,8 @@
       <unique name="C_CURRENCYISOCODE">
         <unique-column name="ISO_CODE"/>
       </unique>
-      <check name="C_CURRENCY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_CURRENCY_ISEURO_CHECK" condition="IsEuro in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_CURR_ISEMUMEMBER_CHECK" condition="IsEMUMember in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CURRENCY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_CURRENCY_ISEURO_CHECK" condition="ISEURO IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_CURR_ISEMUMEMBER_CHECK" condition="ISEMUMEMBER IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CURRENCY_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CURRENCY_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,7 +25,7 @@
       <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CCURRENCYTRL">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <check name="C_CURRENCY_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CCURR_TRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CCURR_TRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_CURRENCY_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CYCLE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CYCLE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,6 +25,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="C_CYCLE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CYCLE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_CYCLESTEP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_CYCLESTEP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,6 +22,6 @@
       <foreign-key foreignTable="C_CYCLE" name="CCYCLE_CCYCLESTEP" onDelete="cascade">
         <reference local="C_CYCLE_ID" foreign="C_CYCLE_ID"/>
       </foreign-key>
-      <check name="C_CYCLESTEP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_CYCLESTEP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DEBT_PAYMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DEBT_PAYMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -92,20 +92,20 @@
       <index name="SETTINVOICE_DEBT_PAYMENT" unique="false">
         <index-column name="C_INVOICE_ID"/>
       </index>
-      <check name="CANCEL_DEBT_PAYMENT" condition="Cancel_Processed=&apos;N&apos; OR C_Settlement_Cancel_ID IS NOT NULL"/>
-      <check name="CANCELISVALID_DEBT_PAYMENT" condition="C_Settlement_Cancel_ID IS NULL OR IsValid=&apos;Y&apos;"/>
-      <check name="CBPARTNER_DEBT_PAYMENT" condition="c_bpartner_id is not null"/>
-      <check name="CDEBTPAYM_CANCEL_PROCESSED" condition="CANCEL_PROCESSED IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DEBT_PAYMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DEBT_PAYMENT_ISMANUAL" condition="ISMANUAL in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DEBT_PAYMENT_ISRECEIPT" condition="IsReceipt in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DEBT_PAYMENT_ISVALID" condition="ISVALID in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDEBTPAYM_GENERATE_PROCESSED" condition="GENERATE_PROCESSED IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CLINE_BSLINE_DEBT_PAYMENT" condition="C_CashLine_ID IS NULL OR C_BankStatementLine_ID IS NULL"/>
-      <check name="DIRECTPOSTING_DEBT_PAYMENT_CHK" condition="ISDIRECTPOSTING=&apos;N&apos; OR C_GLITEM_ID IS NOT NULL"/>
-      <check name="ISPAID_CDEBTPAYMENT" condition="C_SETTLEMENT_CANCEL_ID IS NOT NULL OR C_SETTLEMENT_GENERATE_ID IS NOT NULL OR ISPAID=&apos;N&apos;"/>
-      <check name="ISPAID2_CDEBTPAYMENT" condition="(C_BANKSTATEMENTLINE_ID IS NULL AND C_CASHLINE_ID IS NULL) OR ISPAID=&apos;Y&apos;"/>
-      <check name="ISVALIDACTIVE_DEBT_PAYMENT" condition="IsValid=&apos;N&apos; OR IsActive=&apos;Y&apos;"/>
-      <check name="ISVALIDPLUS_DEBT_PAYMENT2" condition="(IsValid=&apos;Y&apos; AND ((C_Settlement_Generate_ID IS NULL AND Generate_Processed=&apos;N&apos;) OR (C_Settlement_Generate_ID IS NOT NULL AND Generate_Processed=&apos;Y&apos;))) OR (IsValid=&apos;N&apos; AND C_Settlement_Generate_ID IS NOT NULL AND Generate_Processed=&apos;N&apos;) OR (IsValid=&apos;N&apos; AND IsAutomaticGenerated=&apos;N&apos;)"/>
+      <check name="CANCELISVALID_DEBT_PAYMENT" condition="(C_SETTLEMENT_CANCEL_ID IS NULL) OR (ISVALID = &apos;Y&apos;)"/>
+      <check name="CANCEL_DEBT_PAYMENT" condition="(CANCEL_PROCESSED = &apos;N&apos;) OR (C_SETTLEMENT_CANCEL_ID IS NOT NULL)"/>
+      <check name="CBPARTNER_DEBT_PAYMENT" condition="C_BPARTNER_ID IS NOT NULL"/>
+      <check name="CDEBTPAYM_CANCEL_PROCESSED" condition="CANCEL_PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CDEBTPAYM_GENERATE_PROCESSED" condition="GENERATE_PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CLINE_BSLINE_DEBT_PAYMENT" condition="(C_CASHLINE_ID IS NULL) OR (C_BANKSTATEMENTLINE_ID IS NULL)"/>
+      <check name="C_DEBT_PAYMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DEBT_PAYMENT_ISMANUAL" condition="ISMANUAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DEBT_PAYMENT_ISRECEIPT" condition="ISRECEIPT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DEBT_PAYMENT_ISVALID" condition="ISVALID IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="DIRECTPOSTING_DEBT_PAYMENT_CHK" condition="(ISDIRECTPOSTING = &apos;N&apos;) OR (C_GLITEM_ID IS NOT NULL)"/>
+      <check name="ISPAID2_CDEBTPAYMENT" condition="((C_BANKSTATEMENTLINE_ID IS NULL) AND (C_CASHLINE_ID IS NULL)) OR (ISPAID = &apos;Y&apos;)"/>
+      <check name="ISPAID_CDEBTPAYMENT" condition="((C_SETTLEMENT_CANCEL_ID IS NOT NULL) OR (C_SETTLEMENT_GENERATE_ID IS NOT NULL)) OR (ISPAID = &apos;N&apos;)"/>
+      <check name="ISVALIDACTIVE_DEBT_PAYMENT" condition="(ISVALID = &apos;N&apos;) OR (ISACTIVE = &apos;Y&apos;)"/>
+      <check name="ISVALIDPLUS_DEBT_PAYMENT2" condition="(((ISVALID = &apos;Y&apos;) AND (((C_SETTLEMENT_GENERATE_ID IS NULL) AND (GENERATE_PROCESSED = &apos;N&apos;)) OR ((C_SETTLEMENT_GENERATE_ID IS NOT NULL) AND (GENERATE_PROCESSED = &apos;Y&apos;)))) OR (((ISVALID = &apos;N&apos;) AND (C_SETTLEMENT_GENERATE_ID IS NOT NULL)) AND (GENERATE_PROCESSED = &apos;N&apos;))) OR ((ISVALID = &apos;N&apos;) AND (ISAUTOMATICGENERATED = &apos;N&apos;))"/>
     </table>
   </database>
--- a/database/model/tables/C_DEBT_PAYMENT_BALANCING.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DEBT_PAYMENT_BALANCING.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,6 +29,6 @@
         <index-column name="C_DEBT_PAYMENT_ID"/>
         <index-column name="C_GLITEM_ID"/>
       </index>
-      <check name="CDEBTPAYBALG_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CDEBTPAYBALG_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DEBT_PAYMENT_BAL_REPLACE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DEBT_PAYMENT_BAL_REPLACE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,6 +26,6 @@
       <foreign-key foreignTable="C_GLITEM" name="CGLITEM_DEBTPAYMENTBALREP">
         <reference local="C_GLITEM_ID" foreign="C_GLITEM_ID"/>
       </foreign-key>
-      <check name="CDEBTPAYBALREP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CDEBTPAYBALREP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DISCOUNT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DISCOUNT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -13,14 +13,14 @@
       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="120" autoIncrement="false"/>
       <column name="DISCOUNT" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false"/>
       <column name="M_PRODUCT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
-      <foreign-key foreignTable="AD_CLIENT" name="CDISC_FK_ADCLIENT">
-        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="CDISCOUNT_FK_ADORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
       <foreign-key foreignTable="M_PRODUCT" name="CDISCOUNT_FK_MPRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_CLIENT" name="CDISC_FK_ADCLIENT">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
     </table>
   </database>
--- a/database/model/tables/C_DOCTYPE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DOCTYPE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -49,18 +49,15 @@
       <foreign-key foreignTable="AD_PRINTFORMAT" name="ADPRINTFORMAT_CDOCTYPE">
         <reference local="AD_PRINTFORMAT_ID" foreign="AD_PRINTFORMAT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_CDOCTYPE">
+        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_SEQUENCE" name="AD_SEQUENCE_DOCTYPEBATCH">
         <reference local="BATCHNOSEQUENCE_ID" foreign="AD_SEQUENCE_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_SEQUENCE" name="AD_SEQUENCE_DOCTYPEDOC">
         <reference local="DOCNOSEQUENCE_ID" foreign="AD_SEQUENCE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_CDOCTYPE">
-        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_APPROVAL" name="C_APPROVAL_DOCTYPE">
-        <reference local="C_APPROVAL_ID" foreign="C_APPROVAL_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_INVOICE">
         <reference local="C_DOCTYPEINVOICE_ID" foreign="C_DOCTYPE_ID"/>
       </foreign-key>
@@ -70,6 +67,9 @@
       <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_SHIPMENT">
         <reference local="C_DOCTYPESHIPMENT_ID" foreign="C_DOCTYPE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_APPROVAL" name="C_APPROVAL_DOCTYPE">
+        <reference local="C_APPROVAL_ID" foreign="C_APPROVAL_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="GL_CATEGORY" name="GLCATEGORY_CDOCTYPE">
         <reference local="GL_CATEGORY_ID" foreign="GL_CATEGORY_ID"/>
       </foreign-key>
@@ -77,20 +77,20 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="CDOCTYPE_CREATEPICKLIST_CHECK" condition="CreatePickList in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_HASCHARGES_CHECK" condition="HasCharges in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_HASPROFORMA_CHECK" condition="HasProForma in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ISAPPROVED_CHECK" condition="IsApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ISBATCHED_CHECK" condition="IsBatched in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDOCTYPE_ISBCONTRFORCED_CHECK" condition="IsBatchControlEnforced in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDOCTYPE_ISBDOCNOCONTR_CHECK" condition="IsBatchDocNoControlled in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDOCTYPEISDOCNOCONTROL_CHECK" condition="IsDocNoControlled in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ISMAXTABLE_CHECK" condition="IsMaxTable in (&apos;Y&apos;, &apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ISPRINTED_CHECK" condition="IsPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ISSOTRX_CHECK" condition="IsSOTrx in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ISTRANSFERRED_CHECK" condition="IsTransferred in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DOCTYPE_ORGFILTERED_CHECK" condition="OrgFiltered in (&apos;Y&apos;, &apos;N&apos;)"/>
-      <check name="ORGFILTEREDMAXTABLE_CDOCTYPE" condition="(ORGFILTERED = &apos;N&apos;) OR (ISMAXTABLE=&apos;Y&apos;)"/>
+      <check name="CDOCTYPEISDOCNOCONTROL_CHECK" condition="ISDOCNOCONTROLLED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CDOCTYPE_CREATEPICKLIST_CHECK" condition="CREATEPICKLIST IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CDOCTYPE_ISBCONTRFORCED_CHECK" condition="ISBATCHCONTROLENFORCED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CDOCTYPE_ISBDOCNOCONTR_CHECK" condition="ISBATCHDOCNOCONTROLLED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_HASCHARGES_CHECK" condition="HASCHARGES IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_HASPROFORMA_CHECK" condition="HASPROFORMA IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ISAPPROVED_CHECK" condition="ISAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ISBATCHED_CHECK" condition="ISBATCHED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ISMAXTABLE_CHECK" condition="ISMAXTABLE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ISPRINTED_CHECK" condition="ISPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ISTRANSFERRED_CHECK" condition="ISTRANSFERRED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_ORGFILTERED_CHECK" condition="ORGFILTERED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="ORGFILTEREDMAXTABLE_CDOCTYPE" condition="(ORGFILTERED = &apos;N&apos;) OR (ISMAXTABLE = &apos;Y&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DOCTYPE_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DOCTYPE_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_CDOCTYPETRL" onDelete="cascade">
         <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
       </foreign-key>
-      <check name="C_DOCTYPE_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDOCTYPETRL_ISTRANSLAT_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CDOCTYPETRL_ISTRANSLAT_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DOCTYPE_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DUNNING.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DUNNING.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,7 +20,7 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CDUNNING">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_DUNNING_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDUN_SENDDUNLET_CHECK" condition="SendDunningLetter in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CDUN_SENDDUNLET_CHECK" condition="SENDDUNNINGLETTER IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DUNNING_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DUNNINGLEVEL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DUNNINGLEVEL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,8 +31,8 @@
       <foreign-key foreignTable="C_DUNNING" name="CDUNNING_CDUNNINGLEVEL">
         <reference local="C_DUNNING_ID" foreign="C_DUNNING_ID"/>
       </foreign-key>
-      <check name="CDUNLEV_CHARGEINTEREST_CHECK" condition="ChargeInterest in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDUNNINGLEVEL_CHARGEFEE_CHECK" condition="ChargeFee in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_DUNNINGLEVEL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CDUNLEV_CHARGEINTEREST_CHECK" condition="CHARGEINTEREST IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CDUNNINGLEVEL_CHARGEFEE_CHECK" condition="CHARGEFEE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_DUNNINGLEVEL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DUNNINGLEVEL_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DUNNINGLEVEL_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,7 +29,7 @@
         <index-column name="C_DUNNINGLEVEL_ID"/>
         <index-column name="AD_LANGUAGE"/>
       </index>
-      <check name="CDUNLEVELTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CDUNLEVTRL_ISTRANSL_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CDUNLEVELTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CDUNLEVTRL_ISTRANSL_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DUNNINGRUN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DUNNINGRUN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
       <foreign-key foreignTable="C_DUNNINGLEVEL" name="CDUNNINGLEVEL_CDUNNINGRUN">
         <reference local="C_DUNNINGLEVEL_ID" foreign="C_DUNNINGLEVEL_ID"/>
       </foreign-key>
-      <check name="C_DUNNINGRUN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_DUNNINGRUN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_DUNNINGRUNENTRY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_DUNNINGRUNENTRY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,6 +25,6 @@
       <foreign-key foreignTable="C_DUNNINGRUN" name="CDUNNINGRUN_CDUNNINGRUNENTRY" onDelete="cascade">
         <reference local="C_DUNNINGRUN_ID" foreign="C_DUNNINGRUN_ID"/>
       </foreign-key>
-      <check name="C_DUNNINGRUNENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_DUNNINGRUNENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ELEMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ELEMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,15 +21,15 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CELEMENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_TREE" name="ADTREE_CELEMENT" onDelete="setnull">
-        <reference local="AD_TREE_ID" foreign="AD_TREE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_TREE" name="ADTREE1_CELEMENT" onDelete="setnull">
         <reference local="ADD1TREE_ID" foreign="AD_TREE_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_TREE" name="ADTREE2_CELEMENT" onDelete="setnull">
         <reference local="ADD2TREE_ID" foreign="AD_TREE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_TREE" name="ADTREE_CELEMENT" onDelete="setnull">
+        <reference local="AD_TREE_ID" foreign="AD_TREE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="C_ELEMENTORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
@@ -37,8 +37,8 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="C_ELEMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ELEMENT_ISBALANCING_CHECK" condition="IsBalancing in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEM_ISNATURACCOUNT_CHECK" condition="IsNaturalAccount in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CELEM_ISNATURACCOUNT_CHECK" condition="ISNATURALACCOUNT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ELEMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ELEMENT_ISBALANCING_CHECK" condition="ISBALANCING IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ELEMENTVALUE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ELEMENTVALUE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -52,13 +52,13 @@
         <unique-column name="C_ELEMENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="C_ELEMENTVALUE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEMVAL_ISBANKACCOUNT_CHECK" condition="IsBankAccount in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEMVAL_ISDOCCONTROL_CHECK" condition="IsDocControlled in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEMVAL_ISFORCURREN_CHECK" condition="IsForeignCurrency in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEMVAL_POSTENCUMBR_CHECK" condition="PostEncumbrance in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEMVAL_POSTSTATISTIC_CHECK" condition="PostStatistical in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEMVALUE_POSTACTUAL_CHECK" condition="PostActual in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELEMVALUE_POSTBUDGET_CHECK" condition="PostBudget in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CELEMVALUE_POSTACTUAL_CHECK" condition="POSTACTUAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CELEMVALUE_POSTBUDGET_CHECK" condition="POSTBUDGET IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CELEMVAL_ISBANKACCOUNT_CHECK" condition="ISBANKACCOUNT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CELEMVAL_ISDOCCONTROL_CHECK" condition="ISDOCCONTROLLED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CELEMVAL_ISFORCURREN_CHECK" condition="ISFOREIGNCURRENCY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CELEMVAL_POSTENCUMBR_CHECK" condition="POSTENCUMBRANCE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CELEMVAL_POSTSTATISTIC_CHECK" condition="POSTSTATISTICAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ELEMENTVALUE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ELEMENTVALUE_OPERAND.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ELEMENTVALUE_OPERAND.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -19,12 +19,12 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CELEMENTVALUEOPERAND">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CELEMENTVALUEOP1">
+        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CELEMENTVALUEOPE">
         <reference local="ACCOUNT_ID" foreign="C_ELEMENTVALUE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CELEMENTVALUEOP1">
-        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
-      </foreign-key>
-      <check name="CELEMENVOPER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CELEMENVOPER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ELEMENTVALUE_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ELEMENTVALUE_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,7 +25,7 @@
       <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CEVALUETRL" onDelete="cascade">
         <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
       </foreign-key>
-      <check name="CELVALTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CELVALTRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CELVALTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CELVALTRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_EXTERNALPOS_CATEGORY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_EXTERNALPOS_CATEGORY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="PRODCATE_C_EXTERNALPOS_CAT">
         <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
       </foreign-key>
-      <check name="C_EXTERNALPOS_C_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_EXTERNALPOS_C_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_GLITEM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_GLITEM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,6 +17,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CGLITEM">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_GLITEM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_GLITEM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_GLITEM_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_GLITEM_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,6 +30,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="GLITEMDEBITACCT_CGLITEMACCT">
         <reference local="GLITEM_DEBIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_GLITEM_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_GLITEM_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_GREETING.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_GREETING.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -19,8 +19,8 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CGREETING">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_GREETING_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_GREETING_ISDEFAULT_CHECK" condition="IsDefault in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CGREET_ISFIRSTNAMEONLY_CHECK" condition="IsFirstNameOnly in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CGREET_ISFIRSTNAMEONLY_CHECK" condition="ISFIRSTNAMEONLY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_GREETING_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_GREETING_ISDEFAULT_CHECK" condition="ISDEFAULT IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_GREETING_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_GREETING_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,7 +29,7 @@
         <index-column name="C_GREETING_ID"/>
         <index-column name="AD_LANGUAGE"/>
       </index>
-      <check name="C_GREETING_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CGREET_TRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CGREET_TRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_GREETING_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_INCOTERMS.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_INCOTERMS.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -19,8 +19,8 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_C_INCOTERMS">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="CINCOTERM_REQUIRDESCR_CHECK" condition="requiresDescription in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INCOTERMS_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INCOTERMS_ISDELIVERY_CHECK" condition="IsDelivery in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CINCOTERM_REQUIRDESCR_CHECK" condition="REQUIRESDESCRIPTION IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INCOTERMS_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INCOTERMS_ISDELIVERY_CHECK" condition="ISDELIVERY IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_INTERORG_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_INTERORG_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -15,12 +15,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CINTERORGACCT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTO_CINTERORGACCT">
+        <reference local="AD_ORGTO_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_CINTERORGACCT">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTO_CINTERORGACCT">
-        <reference local="AD_ORGTO_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CINTERORGACCT" onDelete="cascade">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
@@ -30,6 +30,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_INTERCOMPANYDUETO_CINTERORG">
         <reference local="INTERCOMPANYDUETO_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_INTERORG_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_INTERORG_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_INVOICE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_INVOICE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -57,12 +57,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CINVOICE">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_CINVOICE">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_CINVOICE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_CINVOICE">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_USER" name="ADUSER_CINVOICE">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
@@ -75,9 +75,6 @@
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_CINVOICE">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="C_BPLOCATION_CINVOICE">
-        <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_CAMPAIGN" name="CCAMPAIGN_CINVOICE">
         <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
       </foreign-key>
@@ -87,12 +84,12 @@
       <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CINVOICE">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPETARGET_CINVOICE">
+        <reference local="C_DOCTYPETARGET_ID" foreign="C_DOCTYPE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_CINVOICE">
         <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPETARGET_CINVOICE">
-        <reference local="C_DOCTYPETARGET_ID" foreign="C_DOCTYPE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ORDER" name="CORDER_CINVOICE">
         <reference local="C_ORDER_ID" foreign="C_ORDER_ID"/>
       </foreign-key>
@@ -102,6 +99,9 @@
       <foreign-key foreignTable="C_PROJECT" name="CPROJECT_CINVOICE">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="C_BPLOCATION_CINVOICE">
+        <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_PRICELIST" name="MPRICELIST_CINVOICE">
         <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
@@ -120,16 +120,16 @@
       <index name="C_INVOICE_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
-      <check name="CINV_ISDISCOUNTPRINT_CHECK" condition="IsDiscountPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_CREATEFROM_CHECK" condition="CreateFrom in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_GENERATETO_CHECK" condition="GenerateTo in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_ISAPPROVED_CHECK" condition="IsApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_ISPAID_CHECK" condition="IsPaid in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_ISPRINTED_CHECK" condition="IsPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_ISSOTRX_CHECK" condition="IsSOTrx in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_ISTAXINCLUDED_CHECK" condition="IsTaxIncluded in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_ISTRANSFERRED_CHECK" condition="IsTransferred in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_INVOICE_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CINV_ISDISCOUNTPRINT_CHECK" condition="ISDISCOUNTPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_CREATEFROM_CHECK" condition="CREATEFROM IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_GENERATETO_CHECK" condition="GENERATETO IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_ISAPPROVED_CHECK" condition="ISAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_ISPAID_CHECK" condition="ISPAID IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_ISPRINTED_CHECK" condition="ISPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_ISTAXINCLUDED_CHECK" condition="ISTAXINCLUDED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_ISTRANSFERRED_CHECK" condition="ISTRANSFERRED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_INVOICE_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_INVOICELINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_INVOICELINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -47,12 +47,12 @@
       <foreign-key foreignTable="C_CHARGE" name="CCHARGE_CINVOICELINE">
         <reference local="C_CHARGE_ID" foreign="C_CHARGE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_INVOICE_DISCOUNT" name="CINVOICELINE_FK_DISCINVOICE">
+        <reference local="C_INVOICE_DISCOUNT_ID" foreign="C_INVOICE_DISCOUNT_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_INVOICE" name="CINVOICE_CINVOICELINE">
         <reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_INVOICE_DISCOUNT" name="CINVOICELINE_FK_DISCINVOICE">
-        <reference local="C_INVOICE_DISCOUNT_ID" foreign="C_INVOICE_DISCOUNT_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ORDERLINE" name="CORDERLINE_CINVOICELINE">
         <reference local="C_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
       </foreign-key>
@@ -71,12 +71,12 @@
       <foreign-key foreignTable="M_OFFER" name="MOFFER_CINVOICELINE">
         <reference local="M_OFFER_ID" foreign="M_OFFER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="M_PRODUCT_UOM" name="MPRODUCTUOMID_CINVOICELINE">
+        <reference local="M_PRODUCT_UOM_ID" foreign="M_PRODUCT_UOM_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CINVOICELINE">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="M_PRODUCT_UOM" name="MPRODUCTUOMID_CINVOICELINE">
-        <reference local="M_PRODUCT_UOM_ID" foreign="M_PRODUCT_UOM_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_PROJECTLINE" name="PROJECTLINE_CINVOICELINE">
         <reference local="C_PROJECTLINE_ID" foreign="C_PROJECTLINE_ID"/>
       </foreign-key>
@@ -95,8 +95,8 @@
       <index name="C_INVOICELINE_PRODUCT" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
-      <check name="C_INVOICELINE_CHECK1" condition="((QUANTITYORDER IS NULL AND M_PRODUCT_UOM_ID IS NULL) OR (QUANTITYORDER IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL))"/>
-      <check name="C_INVOICELINE_CHECK2" condition="LineNetAmt=0 OR C_Tax_ID IS NOT NULL"/>
-      <check name="C_INVOICELINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_INVOICELINE_CHECK1" condition="((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))"/>
+      <check name="C_INVOICELINE_CHECK2" condition="(LINENETAMT = 0) OR (C_TAX_ID IS NOT NULL)"/>
+      <check name="C_INVOICELINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_INVOICEPAYSCHEDULE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_INVOICEPAYSCHEDULE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,7 +31,7 @@
       <index name="C_INVOICEPAYSCHEDULE_INVOICE" unique="false">
         <index-column name="C_INVOICE_ID"/>
       </index>
-      <check name="CINVPAYSCHED_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CINVPAYSCHED_ISVALID_CHECK" condition="IsValid in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CINVPAYSCHED_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CINVPAYSCHED_ISVALID_CHECK" condition="ISVALID IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_INVOICESCHEDULE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_INVOICESCHEDULE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,8 +26,8 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CINVOICESCHEDULE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="CINVOICESCHED_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CINVOICESCHED_ISAMOUNT_CHECK" condition="IsAmount in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CINVSCHED_EVENINVWEEK_CHECK" condition="EvenInvoiceWeek in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CINVOICESCHED_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CINVOICESCHED_ISAMOUNT_CHECK" condition="ISAMOUNT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CINVSCHED_EVENINVWEEK_CHECK" condition="EVENINVOICEWEEK IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_INVOICETAX.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_INVOICETAX.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -27,6 +27,6 @@
       <foreign-key foreignTable="C_TAX" name="CTAX_CINVOICETAX">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
-      <check name="C_INVOICETAX_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_INVOICETAX_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_LOCATION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_LOCATION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -33,6 +33,6 @@
       <foreign-key foreignTable="C_REGION" name="C_REGION_LOCATION">
         <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
       </foreign-key>
-      <check name="C_LOCATION_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_LOCATION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_NATION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_NATION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
         <unique-column name="C_COUNTRY_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="C_NATION_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_NATION_ISDEFAULT_CHECK" condition="IsDefault in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_NATION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_NATION_ISDEFAULT_CHECK" condition="ISDEFAULT IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_NONBUSINESSDAY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_NONBUSINESSDAY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,6 +21,6 @@
       <foreign-key foreignTable="AD_ORG" name="C_NONBUSINESDAYSORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_NONBUSINESSDA_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_NONBUSINESSDA_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ORDER.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ORDER.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -75,33 +75,33 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CORDER">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_CORDER">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_CORDER">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_CORDER">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      <foreign-key foreignTable="AD_USER" name="ADUSERDROPSHIP_CORDER">
+        <reference local="DROPSHIP_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_USER" name="ADUSER_CORDER">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_USER" name="ADUSERDROPSHIP_CORDER">
-        <reference local="DROPSHIP_USER_ID" foreign="AD_USER_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_USER" name="ADUSER_SR_CORDER">
         <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_CORDER">
         <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_CORDER">
-        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNERDROPSHIP_CORDER">
         <reference local="DROPSHIP_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPARTNERLOCATION_SOHEADER">
         <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_CORDER">
+        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPLOCATIONBILLTO_SOHEADER">
         <reference local="BILLTO_ID" foreign="C_BPARTNER_LOCATION_ID"/>
       </foreign-key>
@@ -117,9 +117,6 @@
       <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CORDER">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_DOCTYPE" name="C_DOCTYPE_CORDER">
-        <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPETARGET_CORDER">
         <reference local="C_DOCTYPETARGET_ID" foreign="C_DOCTYPE_ID"/>
       </foreign-key>
@@ -132,6 +129,9 @@
       <foreign-key foreignTable="C_PROJECT" name="CPROJECT_CORDER">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_DOCTYPE" name="C_DOCTYPE_CORDER">
+        <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_PRICELIST" name="MPRICELIST_SOHEADER">
         <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
@@ -156,17 +156,17 @@
       <index name="C_ORDER_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
-      <check name="C_ORDER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISAPPROVED_CHECK" condition="IsApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CORDER_ISCREDITAPPROVED_CHECK" condition="IsCreditApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISDELIVERED_CHECK" condition="IsDelivered in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CORDER_ISDISCOUNTPRINT_CHECK" condition="IsDiscountPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISINVOICED_CHECK" condition="IsInvoiced in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISPRINTED_CHECK" condition="IsPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISSELECTED_CHECK" condition="IsSelected in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISSOTRX_CHECK" condition="IsSOTrx in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISTAXINCLUDED_CHECK" condition="IsTaxIncluded in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_ISTRANSFERRED_CHECK" condition="IsTransferred in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDER_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CORDER_ISCREDITAPPROVED_CHECK" condition="ISCREDITAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CORDER_ISDISCOUNTPRINT_CHECK" condition="ISDISCOUNTPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISAPPROVED_CHECK" condition="ISAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISDELIVERED_CHECK" condition="ISDELIVERED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISINVOICED_CHECK" condition="ISINVOICED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISPRINTED_CHECK" condition="ISPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISSELECTED_CHECK" condition="ISSELECTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISTAXINCLUDED_CHECK" condition="ISTAXINCLUDED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_ISTRANSFERRED_CHECK" condition="ISTRANSFERRED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDER_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ORDERLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ORDERLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -69,27 +69,27 @@
       <foreign-key foreignTable="C_ORDER" name="CORDER_CORDERLINE">
         <reference local="C_ORDER_ID" foreign="C_ORDER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ORDERLINE" name="C_ORDERLINE_SOPOREF">
-        <reference local="REF_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_TAX" name="CTAX_CORDERLINE">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_UOM" name="CUOM_CORDERLINE">
         <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ORDERLINE" name="C_ORDERLINE_SOPOREF">
+        <reference local="REF_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_ATTRIBUTESETINSTANCE" name="MATTRSETINST_CORDERLINE">
         <reference local="M_ATTRIBUTESETINSTANCE_ID" foreign="M_ATTRIBUTESETINSTANCE_ID"/>
       </foreign-key>
       <foreign-key foreignTable="M_OFFER" name="MOFFER_CORDERLINE">
         <reference local="M_OFFER_ID" foreign="M_OFFER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="M_PRODUCT_UOM" name="MPRODUCTOUMID_CORDERLINE">
+        <reference local="M_PRODUCT_UOM_ID" foreign="M_PRODUCT_UOM_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CORDERLINE">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="M_PRODUCT_UOM" name="MPRODUCTOUMID_CORDERLINE">
-        <reference local="M_PRODUCT_UOM_ID" foreign="M_PRODUCT_UOM_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="M_SHIPPER" name="MSHIPPER_CORDERLINE">
         <reference local="M_SHIPPER_ID" foreign="M_SHIPPER_ID"/>
       </foreign-key>
@@ -105,9 +105,9 @@
       <index name="C_ORDERLINE_PRODUCT" unique="false">
         <index-column name="M_PRODUCT_ID"/>
       </index>
-      <check name="C_ORDERLINE_CHECK1" condition="((QUANTITYORDER IS NULL AND M_PRODUCT_UOM_ID IS NULL) OR (QUANTITYORDER IS NOT NULL AND M_PRODUCT_UOM_ID IS NOT NULL))"/>
-      <check name="C_ORDERLINE_CHECK2" condition="LineNetAmt=0 OR C_Tax_ID IS NOT NULL"/>
-      <check name="C_ORDERLINE_DIRECTSHIP_CHECK" condition="DirectShip in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_ORDERLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_ORDERLINE_CHECK1" condition="((QUANTITYORDER IS NULL) AND (M_PRODUCT_UOM_ID IS NULL)) OR ((QUANTITYORDER IS NOT NULL) AND (M_PRODUCT_UOM_ID IS NOT NULL))"/>
+      <check name="C_ORDERLINE_CHECK2" condition="(LINENETAMT = 0) OR (C_TAX_ID IS NOT NULL)"/>
+      <check name="C_ORDERLINE_DIRECTSHIP_CHECK" condition="DIRECTSHIP IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_ORDERLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_ORDERTAX.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_ORDERTAX.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,6 +25,6 @@
       <foreign-key foreignTable="C_TAX" name="CTAX_CORDERTAX">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
-      <check name="C_ORDERTAX_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_ORDERTAX_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PAYMENTTERM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PAYMENTTERM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -40,9 +40,9 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="CPAYMENTT_AFTERDELIVERY_CHECK" condition="AfterDelivery in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_PAYMENTTERM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPAYMENTT_ISDUEFIXED_CHECK" condition="IsDueFixed in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPAYMENTT_ISNEXTBUSDAY_CHECK" condition="IsNextBusinessDay in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CPAYMENTT_AFTERDELIVERY_CHECK" condition="AFTERDELIVERY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPAYMENTT_ISDUEFIXED_CHECK" condition="ISDUEFIXED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPAYMENTT_ISNEXTBUSDAY_CHECK" condition="ISNEXTBUSINESSDAY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_PAYMENTTERM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PAYMENTTERMLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PAYMENTTERMLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -33,10 +33,10 @@
       <foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_CPAYMENTTERMLINE">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
-      <check name="CPAYMENTTL_EXCLUDETAX_CHECK" condition="ExcludeTax in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPAYMENTTLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPAYMENTTL_ISDUEFIXED_CHECK" condition="IsDueFixed in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPAYMENTTL_ISNEXTBUSDAY_CHECK" condition="IsNextBusinessDay in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPAYMENTTL_ONREMAINDER_CHECK" condition="OnRemainder in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CPAYMENTTLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPAYMENTTL_EXCLUDETAX_CHECK" condition="EXCLUDETAX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPAYMENTTL_ISDUEFIXED_CHECK" condition="ISDUEFIXED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPAYMENTTL_ISNEXTBUSDAY_CHECK" condition="ISNEXTBUSINESSDAY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPAYMENTTL_ONREMAINDER_CHECK" condition="ONREMAINDER IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PAYMENTTERM_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PAYMENTTERM_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_CPAYTERMTRL" onDelete="cascade">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
-      <check name="CPAYMENTTTRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPAYMENTTTRL_ISTRANSL_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CPAYMENTTTRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPAYMENTTTRL_ISTRANSL_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PAYSCHEDULE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PAYSCHEDULE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_CPAYSCHEDULE">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
-      <check name="C_PAYSCHEDULE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_PAYSCHEDULE_ISVALID_CHECK" condition="IsValid in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PAYSCHEDULE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_PAYSCHEDULE_ISVALID_CHECK" condition="ISVALID IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PERIOD.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PERIOD.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -32,6 +32,6 @@
         <unique-column name="C_YEAR_ID"/>
         <unique-column name="PERIODNO"/>
       </unique>
-      <check name="C_PERIOD_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PERIOD_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PERIODCONTROL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PERIODCONTROL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <foreign-key foreignTable="C_PERIOD" name="C_PERIOD_PERIODCONTROL">
         <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
       </foreign-key>
-      <check name="C_PERIODCONTROL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PERIODCONTROL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -90,9 +90,6 @@
       <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_CPROJECT">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_LOCATION" name="C_LOCATION_PROJECT">
-        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_CPROJECT">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
@@ -105,6 +102,9 @@
       <foreign-key foreignTable="C_PROJECTTYPE" name="CPROJECTTYPE_CPROJECT">
         <reference local="C_PROJECTTYPE_ID" foreign="C_PROJECTTYPE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_LOCATION" name="C_LOCATION_PROJECT">
+        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_PRICELIST_VERSION" name="MPRICELISTVERSION_CPROJECT">
         <reference local="M_PRICELIST_VERSION_ID" foreign="M_PRICELIST_VERSION_ID"/>
       </foreign-key>
@@ -121,9 +121,9 @@
         <index-column name="AD_CLIENT_ID"/>
         <index-column name="VALUE"/>
       </index>
-      <check name="C_PROJECT_GENERATETO_CHECK" condition="GenerateTo in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_PROJECT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_PROJECT_ISCOMMITMENT_CHECK" condition="IsCommitment in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_PROJECT_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PROJECT_GENERATETO_CHECK" condition="GENERATETO IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_PROJECT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_PROJECT_ISCOMMITMENT_CHECK" condition="ISCOMMITMENT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_PROJECT_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECTISSUE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECTISSUE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -45,6 +45,6 @@
       <foreign-key foreignTable="S_TIMEEXPENSELINE" name="STIMEEXPENSELINE_CPROJECTISSUE">
         <reference local="S_TIMEEXPENSELINE_ID" foreign="S_TIMEEXPENSELINE_ID"/>
       </foreign-key>
-      <check name="C_PROJECTISSUE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PROJECTISSUE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECTLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECTLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -45,12 +45,12 @@
       <foreign-key foreignTable="C_ORDER" name="CORDER_CPROJECTLINE1">
         <reference local="C_ORDER_ID" foreign="C_ORDER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_PROJECTISSUE" name="CPROJECTISSUE_CPROJECTLINE">
+        <reference local="C_PROJECTISSUE_ID" foreign="C_PROJECTISSUE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_PROJECT" name="CPROJECT_CPROJECTLINE" onDelete="cascade">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_PROJECTISSUE" name="CPROJECTISSUE_CPROJECTLINE">
-        <reference local="C_PROJECTISSUE_ID" foreign="C_PROJECTISSUE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_TAX" name="C_TAX_FK_PROJECTLINE">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
@@ -60,6 +60,6 @@
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CPROJECTLINE">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="C_PROJECTLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PROJECTLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECTPROPOSAL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECTPROPOSAL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -36,12 +36,12 @@
       <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPLOCATION_C_PROJECTPROPOSAL">
         <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_PROJECT" name="CPROJECT_C_PROJECTPROPOSAL">
+        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_PAYMENTTERM" name="C_PAYMENTTERM_C_PPROPOSAL">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_PROJECT" name="CPROJECT_C_PROJECTPROPOSAL">
-        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
-      </foreign-key>
-      <check name="C_PROJECTPROPOS_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PROJECTPROPOS_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECTPROPOSALLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECTPROPOSALLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,6 +30,6 @@
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_C_PROJECTPROPOSALLINE">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="CPRPROPLN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CPRPROPLN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECTPROPOSALTASK.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECTPROPOSALTASK.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <foreign-key foreignTable="C_PROJECTPROPOSAL" name="CPROJECTPOSAL_C_PROPOSALTASK">
         <reference local="C_PROJECTPROPOSAL_ID" foreign="C_PROJECTPROPOSAL_ID"/>
       </foreign-key>
-      <check name="C_PRPROPTK_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PRPROPTK_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECT_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECT_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,6 +30,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_PJWIP_CPROJECT">
         <reference local="PJ_WIP_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_PROJECT_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PROJECT_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROJECT_VENDOR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROJECT_VENDOR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -38,6 +38,6 @@
       <foreign-key foreignTable="M_PRICELIST" name="PRICELIST_PROJECTVENDOR">
         <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
-      <check name="C_PROJECT_VENDO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_PROJECT_VENDO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_PROMISSORYFORMAT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_PROMISSORYFORMAT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -48,7 +48,7 @@
       <foreign-key foreignTable="C_BANKACCOUNT" name="CBANKACCOUNTCPROMISSORYFORMAT">
         <reference local="C_BANKACCOUNT_ID" foreign="C_BANKACCOUNT_ID"/>
       </foreign-key>
-      <check name="CPROMISFORMAT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CPROMISFORMPRINTBANKLOC_CHECK" condition="PrintBankLoc in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CPROMISFORMAT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CPROMISFORMPRINTBANKLOC_CHECK" condition="PRINTBANKLOC IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_REGION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_REGION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -31,7 +31,7 @@
         <unique-column name="C_COUNTRY_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="C_REGION_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_REGION_ISDEFAULT_CHECK" condition="IsDefault in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_REGION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_REGION_ISDEFAULT_CHECK" condition="ISDEFAULT IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_REMITTANCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_REMITTANCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -39,6 +39,6 @@
       <foreign-key foreignTable="AD_ORG" name="ORG_CREMINTANCE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_REMITTANCE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_REMITTANCE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_REMITTANCE_TYPE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_REMITTANCE_TYPE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,6 +21,6 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_CREMITTANCETYPE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_REMITTANCE_TY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_REMITTANCE_TY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_REVENUERECOGNITION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_REVENUERECOGNITION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CREVENUERECOGNITION">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_REVENUERECOGN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_REVENUERECOGN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_REVENUERECOGNITION_PLAN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_REVENUERECOGNITION_PLAN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -41,6 +41,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_UNEARNEDREVENUE_CREVENUEREC">
         <reference local="UNEARNEDREVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="CREVCOGPLAN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CREVCOGPLAN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_REVENUERECOGNITION_RUN.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_REVENUERECOGNITION_RUN.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
       <foreign-key foreignTable="GL_JOURNAL" name="GLJOURNAL_CREVENUERECRUN">
         <reference local="GL_JOURNAL_ID" foreign="GL_JOURNAL_ID"/>
       </foreign-key>
-      <check name="CREVRUN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CREVRUN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_SALARY_CATEGORY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_SALARY_CATEGORY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,6 +17,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CSALARYCATEGORY">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="C_SALARY_CATEGO_ISACTIVE_CHECK" condition="IsActive IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_SALARY_CATEGO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_SALESREGION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_SALESREGION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,6 +25,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="VALUE"/>
       </unique>
-      <check name="C_SALESREGION_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_SALESREGION_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_SERVICELEVEL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_SERVICELEVEL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,7 +28,7 @@
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CSERVICELEVEL">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="C_SERVICELEVEL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CSERVICELEVEL_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CSERVICELEVEL_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_SERVICELEVEL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_SERVICELEVELLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_SERVICELEVELLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,7 +23,7 @@
       <foreign-key foreignTable="C_SERVICELEVEL" name="CSERVICELEVEL_LINE" onDelete="cascade">
         <reference local="C_SERVICELEVEL_ID" foreign="C_SERVICELEVEL_ID"/>
       </foreign-key>
-      <check name="CSERVLEVLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CSERVLEVLINE_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CSERVLEVLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CSERVLEVLINE_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_SETTLEMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_SETTLEMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -57,9 +57,9 @@
       <index name="C_SETTLEMENT_UPDATED" unique="false">
         <index-column name="UPDATED"/>
       </index>
+      <check name="CSETTLEMENT_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
       <check name="CSETTLEM_CREATEFILE_CHECK" condition="CREATEFILE IN (&apos;Y&apos;, &apos;N&apos;)"/>
-      <check name="C_SETTLEMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CSETTLEMENT_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_SETTLEMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
       <check name="DATEACCT_CSETTLEMENT" condition="DATEACCT IS NOT NULL"/>
     </table>
   </database>
--- a/database/model/tables/C_TAX.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_TAX.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -36,18 +36,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_CTAX">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRY_C_TAX">
-        <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRYTO_C_TAX">
-        <reference local="TO_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_REGION" name="C_REGION_C_TAX">
-        <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_REGION" name="C_REGIONTO_C_TAX">
-        <reference local="TO_REGION_ID" foreign="C_REGION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_TAXCATEGORY" name="CTAXCATEGORY_CTAX" onDelete="cascade">
         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
       </foreign-key>
@@ -57,14 +45,26 @@
       <foreign-key foreignTable="C_TAX" name="CTAX_PARENT">
         <reference local="PARENT_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRYTO_C_TAX">
+        <reference local="TO_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRY_C_TAX">
+        <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_REGION" name="C_REGIONTO_C_TAX">
+        <reference local="TO_REGION_ID" foreign="C_REGION_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_REGION" name="C_REGION_C_TAX">
+        <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
+      </foreign-key>
       <unique name="C_TAX_NAME1">
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
         <unique-column name="PARENT_TAX_ID"/>
       </unique>
-      <check name="C_TAX_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_ISDOCUMENTLEVEL_CHECK" condition="IsDocumentLevel in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_ISPRINTTAX_CHECK" condition="ISPRINTTAX IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CTAX_REQTAXCERTIFIC_CHECK" condition="RequiresTaxCertificate in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CTAX_REQTAXCERTIFIC_CHECK" condition="REQUIRESTAXCERTIFICATE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_ISDOCUMENTLEVEL_CHECK" condition="ISDOCUMENTLEVEL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_ISPRINTTAX_CHECK" condition="ISPRINTTAX IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_TAXCATEGORY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_TAXCATEGORY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="C_TAXCATEGORY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_TAXCATEGORY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_TAXCATEGORY_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_TAXCATEGORY_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,7 +25,7 @@
       <foreign-key foreignTable="C_TAXCATEGORY" name="CTAXCATEGORY_TRL">
         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
       </foreign-key>
-      <check name="CTAXCATEG_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CTAXCATEG_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CTAXCATEG_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CTAXCATEG_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_TAX_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_TAX_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -42,6 +42,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_TREC_CTAX">
         <reference local="T_RECEIVABLES_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_TAX_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_TAX_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_TAX_REPORT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_TAX_REPORT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,11 +26,11 @@
       <foreign-key foreignTable="C_TAX" name="CTAX_CTAXREPORT">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
-      <check name="C_TAX_REPORT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_REPORT_ISNEGATIVE_CHECK" condition="ISNEGATIVE IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_REPORT_ISREPORT_CHECK" condition="ISREPORT IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_REPORT_ISSHOWN_CHECK" condition="ISSHOWN IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_REPORT_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_REPORT_ISSUMMARY_CHECK" condition="ISSUMMARY IN (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_TAX_REPORT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_REPORT_ISNEGATIVE_CHECK" condition="ISNEGATIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_REPORT_ISREPORT_CHECK" condition="ISREPORT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_REPORT_ISSHOWN_CHECK" condition="ISSHOWN IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_REPORT_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_REPORT_ISSUMMARY_CHECK" condition="ISSUMMARY IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_TAX_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_TAX_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="C_TAX" name="CTAX_CTAXTRL">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
-      <check name="C_TAX_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_TAX_TRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_TAX_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_TAX_TRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_UOM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_UOM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,7 +30,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="BREAKDOWN_CHECK_CUOM" condition="BREAKDOWN IN (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_UOM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="BREAKDOWN_CHECK_CUOM" condition="BREAKDOWN IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_UOM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_UOM_CONVERSION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_UOM_CONVERSION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -13,18 +13,18 @@
       <column name="C_UOM_TO_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="MULTIPLYRATE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
       <column name="DIVIDERATE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/>
+      <foreign-key foreignTable="C_UOM" name="CUOM_CUOMCONVERSION">
+        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_UOM" name="C_UOMCONVERSIONTO">
+        <reference local="C_UOM_TO_ID" foreign="C_UOM_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="C_UOM_CONVERSIONCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="C_UOM_CONVERSIONORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_UOM" name="C_UOMCONVERSIONTO">
-        <reference local="C_UOM_TO_ID" foreign="C_UOM_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_UOM" name="CUOM_CUOMCONVERSION">
-        <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
-      </foreign-key>
-      <check name="C_UOM_CONVERSIO_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_UOM_CONVERSIO_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_UOM_TRL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_UOM_TRL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,7 +26,7 @@
       <foreign-key foreignTable="C_UOM" name="CUOM_CUOMTRL" onDelete="cascade">
         <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
       </foreign-key>
-      <check name="C_UOM_TRL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="C_UOM_TRL_ISTRANSLATED_CHECK" condition="IsTranslated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_UOM_TRL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_UOM_TRL_ISTRANSLATED_CHECK" condition="ISTRANSLATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_VALIDCOMBINATION.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_VALIDCOMBINATION.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -81,7 +81,7 @@
         <index-column name="AD_ORG_ID"/>
         <index-column name="ACCOUNT_ID"/>
       </index>
-      <check name="CVALCOMBIN_ISFULLQUAL_CHECK" condition="IsFullyQualified in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CVALIDCOMBIN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CVALCOMBIN_ISFULLQUAL_CHECK" condition="ISFULLYQUALIFIED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CVALIDCOMBIN_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_WITHHOLDING.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_WITHHOLDING.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -35,10 +35,10 @@
       <foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_CWITHHOLDING">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
-      <check name="C_WITHHOLDING_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CWITHHOLD_ISTAXPRORAT_CHECK" condition="IsTaxProrated in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CWITHOLD_ISPAIDTO3PART_CHECK" condition="IsPaidTo3Party in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CWITHOLD_ISPNTWITHOLD_CHECK" condition="IsPercentWithholding in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="CWITHOLD_ISTAXWITHHOLD_CHECK" condition="IsTaxWithholding in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="CWITHHOLD_ISTAXPRORAT_CHECK" condition="ISTAXPRORATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CWITHOLD_ISPAIDTO3PART_CHECK" condition="ISPAIDTO3PARTY IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CWITHOLD_ISPNTWITHOLD_CHECK" condition="ISPERCENTWITHHOLDING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="CWITHOLD_ISTAXWITHHOLD_CHECK" condition="ISTAXWITHHOLDING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="C_WITHHOLDING_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_WITHHOLDING_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_WITHHOLDING_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,6 +26,6 @@
       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_WITHHOLDING_CWITHHOLDING">
         <reference local="WITHHOLDING_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       </foreign-key>
-      <check name="C_WITHHOLDING_A_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_WITHHOLDING_A_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/C_YEAR.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/C_YEAR.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -28,6 +28,6 @@
         <unique-column name="C_CALENDAR_ID"/>
         <unique-column name="YEAR"/>
       </unique>
-      <check name="C_YEAR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="C_YEAR_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/FACT_ACCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/FACT_ACCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -55,14 +55,14 @@
       <foreign-key foreignTable="AD_CLIENT" name="AC_CLIENT_FACT_ACCT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="AD_ORG_FACT_ACCT">
-        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_FACTACCT">
+        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_ORGTRX_FACT_ACCT">
         <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_FACTACCT">
-        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
+      <foreign-key foreignTable="AD_ORG" name="AD_ORG_FACT_ACCT">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_FACTACCT" onDelete="cascade">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
@@ -70,39 +70,39 @@
       <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_FACTACCT">
         <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER1_FACTACCT">
+        <reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER2_FACTACCT">
+        <reference local="USER2_ID" foreign="C_ELEMENTVALUE_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_FACTACCT">
+        <reference local="ACCOUNT_ID" foreign="C_ELEMENTVALUE_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_FACTACCT">
+        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_TAX" name="CTAX_FACTACCT">
+        <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_BPARTNER" name="C_BUSPARTNER_FACT_ACCT">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_FACT_ACCT">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_FACTACCT">
-        <reference local="ACCOUNT_ID" foreign="C_ELEMENTVALUE_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER1_FACTACCT">
-        <reference local="USER1_ID" foreign="C_ELEMENTVALUE_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUEUSER2_FACTACCT">
-        <reference local="USER2_ID" foreign="C_ELEMENTVALUE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_LOCATION" name="C_LOCATIONFROM_FACT_ACCT">
         <reference local="C_LOCFROM_ID" foreign="C_LOCATION_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_LOCATION" name="C_LOCATIONTO_FACT_ACCT">
         <reference local="C_LOCTO_ID" foreign="C_LOCATION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_FACTACCT">
-        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_FACT_ACCT">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_SALESREGION" name="C_SALESREGION_FACTACCT">
         <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_TAX" name="CTAX_FACTACCT">
-        <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_UOM" name="C_UOM_FACT_ACCT">
         <reference local="C_UOM_ID" foreign="C_UOM_ID"/>
       </foreign-key>
@@ -137,6 +137,6 @@
         <index-column name="AD_TABLE_ID"/>
         <index-column name="RECORD_ID"/>
       </index>
-      <check name="FACT_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="FACT_ACCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/FACT_ACCT_BALANCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/FACT_ACCT_BALANCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -29,12 +29,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_FACTACCTBAL">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_FACTACCTBAL">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_FACTACCTBAL" onDelete="cascade">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_FACTACCTBAL">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_FACTACCTBAL">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
--- a/database/model/tables/GL_BUDGET.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/GL_BUDGET.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,7 +23,7 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="GL_BUDGET_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="GL_BUDGET_ISPRIMARY_CHECK" condition="IsPrimary in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="GL_BUDGET_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="GL_BUDGET_ISPRIMARY_CHECK" condition="ISPRIMARY IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/GL_CATEGORY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/GL_CATEGORY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,6 +24,6 @@
         <unique-column name="AD_CLIENT_ID"/>
         <unique-column name="NAME"/>
       </unique>
-      <check name="GL_CATEGORY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="GL_CATEGORY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/GL_JOURNAL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/GL_JOURNAL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -40,15 +40,15 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_GLJOURNAL">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ACCTSCHEMA" name="C_ACCTSCHEMA_GL_JOURNAL">
-        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_CURRENCY" name="CCURRENCY_GLJOURNAL">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_DOCTYPE" name="CDOCTYPE_GLJOURNAL">
         <reference local="C_DOCTYPE_ID" foreign="C_DOCTYPE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ACCTSCHEMA" name="C_ACCTSCHEMA_GL_JOURNAL">
+        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_PERIOD" name="C_PERIOD_JOURNAL">
         <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
       </foreign-key>
@@ -66,9 +66,9 @@
         <unique-column name="C_PERIOD_ID"/>
         <unique-column name="DOCUMENTNO"/>
       </unique>
-      <check name="GL_JOURNAL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="GL_JOURNAL_ISAPPROVED_CHECK" condition="IsApproved in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="GL_JOURNAL_ISPRINTED_CHECK" condition="IsPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="GL_JOURNAL_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="GL_JOURNAL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="GL_JOURNAL_ISAPPROVED_CHECK" condition="ISAPPROVED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="GL_JOURNAL_ISPRINTED_CHECK" condition="ISPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="GL_JOURNAL_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/GL_JOURNALBATCH.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/GL_JOURNALBATCH.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -44,8 +44,8 @@
         <unique-column name="C_PERIOD_ID"/>
         <unique-column name="DOCUMENTNO"/>
       </unique>
-      <check name="GL_JOURNALBATCH_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="GLJOURNBATCH_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="GLJOURNBATCH_PROCESSING_CHECK" condition="Processing in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="GLJOURNBATCH_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="GLJOURNBATCH_PROCESSING_CHECK" condition="PROCESSING IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="GL_JOURNALBATCH_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/GL_JOURNALLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/GL_JOURNALLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -46,7 +46,7 @@
       <foreign-key foreignTable="GL_JOURNAL" name="GLJOURNAL_GLJOURNALLINE">
         <reference local="GL_JOURNAL_ID" foreign="GL_JOURNAL_ID"/>
       </foreign-key>
-      <check name="GL_JOURNALLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="GLJOURNLINE_ISGENERATED_CHECK" condition="IsGenerated in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="GLJOURNLINE_ISGENERATED_CHECK" condition="ISGENERATED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="GL_JOURNALLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_BANKSTATEMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_BANKSTATEMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -67,9 +67,9 @@
       <foreign-key foreignTable="C_INVOICE" name="CINVOICE_IBANKSTATEMENT">
         <reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
       </foreign-key>
-      <check name="I_BANKSTATEMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IBANKSTAT_I_ISIMPORTED_CHECK" condition="I_IsImported in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IBANKSTAT_ISREVERSAL_CHECK" condition="IsReversal in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IBANKSTAT_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="IBANKSTAT_ISREVERSAL_CHECK" condition="ISREVERSAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="IBANKSTAT_I_ISIMPORTED_CHECK" condition="I_ISIMPORTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="IBANKSTAT_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_BANKSTATEMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_BPARTNER.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_BPARTNER.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -55,12 +55,12 @@
       <foreign-key foreignTable="AD_USER" name="ADUSER_IBPARTNER">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPARTNERLOCATION_IBPARTNER">
+        <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_IBPARTNER">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPARTNERLOCATION_IBPARTNER">
-        <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BP_GROUP" name="CBPGROUP_IBPARTNER">
         <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
       </foreign-key>
@@ -73,7 +73,7 @@
       <foreign-key foreignTable="C_REGION" name="CREGION_IBPARTNER">
         <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
       </foreign-key>
-      <check name="I_BPARTNER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IBPARTNER_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="IBPARTNER_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_BPARTNER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_BUDGETLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_BUDGETLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -48,21 +48,24 @@
       <foreign-key foreignTable="AD_CLIENT" name="AC_CLIENT_I_BUDGETLINE">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="AD_ORGTRX_I_BUDGETLINE">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_I_BUDGETLINE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="AD_ORGTRX_I_BUDGETLINE">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_I_BUDGETLINE">
         <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_BUDGET" name="CBUDGET_IBUDGETLINE">
+        <reference local="C_BUDGET_ID" foreign="C_BUDGET_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_IBUDGETLINE">
+        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_BP_GROUP" name="C_BP_GROUP_I_BUDGETLINE">
         <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_BUDGET" name="CBUDGET_IBUDGETLINE">
-        <reference local="C_BUDGET_ID" foreign="C_BUDGET_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_BUDGETLINE" name="C_BUDGETLINE_I_BUDGETLINE">
         <reference local="C_BUDGETLINE_ID" foreign="C_BUDGETLINE_ID"/>
       </foreign-key>
@@ -72,9 +75,6 @@
       <foreign-key foreignTable="C_CURRENCY" name="C_CURRENCY_I_BUDGETLINE">
         <reference local="C_CURRENCY_ID" foreign="C_CURRENCY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_PERIOD" name="CPERIOD_IBUDGETLINE">
-        <reference local="C_PERIOD_ID" foreign="C_PERIOD_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_I_BUDGETLINE">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
@@ -96,6 +96,6 @@
       <foreign-key foreignTable="C_CAMPAIGN" name="SO_CAMPAIGN_I_BUDGETLINE">
         <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
       </foreign-key>
-      <check name="I_BUDGETLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="I_BUDGETLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_ELEMENTVALUE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_ELEMENTVALUE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -42,21 +42,21 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_IELEMENTVALUE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_IELEMENTVALUE">
+        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_ELEMENT" name="CELEMENT_IELEMENTVALUE">
         <reference local="C_ELEMENT_ID" foreign="C_ELEMENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_IELEMENTVALUE">
-        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ELEMENTVALUE" name="CEVALUEPARENT_IELEMENTVALUE">
         <reference local="PARENTELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
       </foreign-key>
-      <check name="I_ELEMENTVALUE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IELEMVAL_ISDOCCONTROL_CHECK" condition="IsDocControlled in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IELEMVALUE_POSTACTUAL_CHECK" condition="PostActual in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IELEMVALUE_POSTBUDGET_CHECK" condition="PostBudget in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IELEMVALUE_POSTENCUMBR_CHECK" condition="PostEncumbrance in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IELEMVALUE_POSTSTATIST_CHECK" condition="PostStatistical in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="IELEMVALUE_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="IELEMVALUE_POSTACTUAL_CHECK" condition="POSTACTUAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="IELEMVALUE_POSTBUDGET_CHECK" condition="POSTBUDGET IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="IELEMVALUE_POSTENCUMBR_CHECK" condition="POSTENCUMBRANCE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="IELEMVALUE_POSTSTATIST_CHECK" condition="POSTSTATISTICAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="IELEMVALUE_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="IELEMVAL_ISDOCCONTROL_CHECK" condition="ISDOCCONTROLLED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_ELEMENTVALUE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_GLJOURNAL.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_GLJOURNAL.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -70,12 +70,12 @@
       <foreign-key foreignTable="AD_ORG" name="ADORGDOC_IGLJOURNAL">
         <reference local="AD_ORGDOC_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_IGLJOURNAL">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_IGLJOURNAL">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_IGLJOURNAL">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_IGLJOURNAL">
         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       </foreign-key>
@@ -142,8 +142,8 @@
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_OGLJOURNAL">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="IGLJOURNAL_I_ISIMPORTED_CHECK" condition="I_IsImported in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_GLJOURNAL_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_GLJOURNAL_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="IGLJOURNAL_I_ISIMPORTED_CHECK" condition="I_ISIMPORTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_GLJOURNAL_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_GLJOURNAL_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_INVENTORY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_INVENTORY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -37,12 +37,12 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_IINVENTORY">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINE_IINVENTORY">
+        <reference local="M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="M_INVENTORY" name="MINVENTORY_IINVENTORY">
         <reference local="M_INVENTORY_ID" foreign="M_INVENTORY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINE_IINVENTORY">
-        <reference local="M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_IINVENTORY">
         <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
       </foreign-key>
--- a/database/model/tables/I_INVOICE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_INVOICE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -59,12 +59,12 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_IINVOICE">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_IINVOICE">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_IINVOICE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_IINVOICE">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_USER" name="ADUSER_IINVOICE">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
@@ -119,9 +119,9 @@
       <foreign-key foreignTable="AD_USER" name="REFAD_USER1974">
         <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
       </foreign-key>
-      <check name="I_INVOICE_I_ISIMPORTED_CHECK" condition="I_IsImported in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_INVOICE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_INVOICE_ISSOTRX_CHECK" condition="IsSOTrx in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_INVOICE_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="I_INVOICE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_INVOICE_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_INVOICE_I_ISIMPORTED_CHECK" condition="I_ISIMPORTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_INVOICE_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_ORDER.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_ORDER.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -76,30 +76,30 @@
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_IORDER">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_IORDER">
+        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_IORDER">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORGTRX_IORDER">
-        <reference local="AD_ORGTRX_ID" foreign="AD_ORG_ID"/>
+      <foreign-key foreignTable="AD_USER" name="ADUSERSALESREP_IORDER">
+        <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_USER" name="ADUSER_IORDER">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_USER" name="ADUSERSALESREP_IORDER">
-        <reference local="SALESREP_ID" foreign="AD_USER_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_IORDER">
         <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
       </foreign-key>
       <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBOLOCATION_IORDER">
         <reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPARTNERLOCBILLTO_IORDER">
+        <reference local="BILLTO_ID" foreign="C_BPARTNER_LOCATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_IORDER">
         <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPARTNERLOCBILLTO_IORDER">
-        <reference local="BILLTO_ID" foreign="C_BPARTNER_LOCATION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_CAMPAIGN" name="CCAMPAIGN_IORDER">
         <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
       </foreign-key>
@@ -115,12 +115,12 @@
       <foreign-key foreignTable="C_LOCATION" name="CLOCATION_IORDER">
         <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ORDERLINE" name="CORDERLINE_IORDER">
+        <reference local="C_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_ORDER" name="CORDER_IORDER">
         <reference local="C_ORDER_ID" foreign="C_ORDER_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ORDERLINE" name="CORDERLINE_IORDER">
-        <reference local="C_ORDERLINE_ID" foreign="C_ORDERLINE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_PAYMENTTERM" name="CPAYMENTTERM_IORDER">
         <reference local="C_PAYMENTTERM_ID" foreign="C_PAYMENTTERM_ID"/>
       </foreign-key>
@@ -148,9 +148,9 @@
       <foreign-key foreignTable="C_PROJECT" name="REFC_PROJECT1959">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
-      <check name="I_ORDER_I_ISIMPORTED_CHECK" condition="I_IsImported in (&apos;Y&apos;,&apos;N&apos;,&apos;E&apos;)"/>
-      <check name="I_ORDER_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_ORDER_ISSOTRX_CHECK" condition="IsSOTrx in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_ORDER_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="I_ORDER_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_ORDER_ISSOTRX_CHECK" condition="ISSOTRX IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_ORDER_I_ISIMPORTED_CHECK" condition="I_ISIMPORTED IN (&apos;Y&apos;, &apos;N&apos;, &apos;E&apos;)"/>
+      <check name="I_ORDER_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_PRODUCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_PRODUCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -73,8 +73,8 @@
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_IPRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="I_PROD_DISCONTINUED_CHECK" condition="Discontinued in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_PRODUCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_PRODUCT_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="I_PRODUCT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_PRODUCT_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_PROD_DISCONTINUED_CHECK" condition="DISCONTINUED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_REPORTLINE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_REPORTLINE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -37,17 +37,17 @@
       <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_IREPORTLINE">
         <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="PA_REPORTLINESET" name="PAREPORTLINESET_IREPORTLINE">
+        <reference local="PA_REPORTLINESET_ID" foreign="PA_REPORTLINESET_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="PA_REPORTLINE" name="PAREPORTLINE_IREPORTLINE">
         <reference local="PA_REPORTLINE_ID" foreign="PA_REPORTLINE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="PA_REPORTLINESET" name="PAREPORTLINESET_IREPORTLINE">
-        <reference local="PA_REPORTLINESET_ID" foreign="PA_REPORTLINESET_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="PA_REPORTSOURCE" name="PAREPORTSOURCE_IREPORTLINE">
         <reference local="PA_REPORTSOURCE_ID" foreign="PA_REPORTSOURCE_ID"/>
       </foreign-key>
-      <check name="I_REPORTLINE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_REPORTLINE_ISPRINTED_CHECK" condition="IsPrinted in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="I_REPORTLINE_PROCESSED_CHECK" condition="Processed in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="I_REPORTLINE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_REPORTLINE_ISPRINTED_CHECK" condition="ISPRINTED IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="I_REPORTLINE_PROCESSED_CHECK" condition="PROCESSED IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/I_TAX.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/I_TAX.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -53,21 +53,21 @@
       <foreign-key foreignTable="C_COUNTRY" name="COUTRYTO_ITAX">
         <reference local="TO_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_TAX" name="CTAX1_ITAX">
+        <reference local="PARENT_TAX_ID" foreign="C_TAX_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_TAX" name="CTAX_ITAX">
         <reference local="C_TAX_ID" foreign="C_TAX_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_TAX" name="CTAX1_ITAX">
-        <reference local="PARENT_TAX_ID" foreign="C_TAX_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ORG_ITAX">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_REGION" name="REGIONTO_ITAX">
+        <reference local="TO_REGION_ID" foreign="C_REGION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_REGION" name="REGION_ITAX">
         <reference local="C_REGION_ID" foreign="C_REGION_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_REGION" name="REGIONTO_ITAX">
-        <reference local="TO_REGION_ID" foreign="C_REGION_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="C_TAXCATEGORY" name="TAXCATEGORY_ITAX">
         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
       </foreign-key>
--- a/database/model/tables/K_CATEGORY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_CATEGORY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -18,6 +18,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_KCATEGORY">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="K_CATEGORY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_CATEGORY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_CATEGORYVALUE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_CATEGORYVALUE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -21,6 +21,6 @@
       <foreign-key foreignTable="K_CATEGORY" name="KCATEGORY_KCATEGORYVALUE">
         <reference local="K_CATEGORY_ID" foreign="K_CATEGORY_ID"/>
       </foreign-key>
-      <check name="K_CATEGORYVALUE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_CATEGORYVALUE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_COMMENT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_COMMENT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,7 +22,7 @@
       <foreign-key foreignTable="K_ENTRY" name="KENTRY_KCOMMENT">
         <reference local="K_ENTRY_ID" foreign="K_ENTRY_ID"/>
       </foreign-key>
-      <check name="K_COMMENT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="K_COMMENT_ISPUBLIC_CHECK" condition="IsPublic in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_COMMENT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="K_COMMENT_ISPUBLIC_CHECK" condition="ISPUBLIC IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_ENTRY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_ENTRY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -30,7 +30,7 @@
       <foreign-key foreignTable="K_TOPIC" name="KTOPIC_KENTRY">
         <reference local="K_TOPIC_ID" foreign="K_TOPIC_ID"/>
       </foreign-key>
-      <check name="K_ENTRY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="K_ENTRY_ISPUBLIC_CHECK" condition="IsPublic in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_ENTRY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="K_ENTRY_ISPUBLIC_CHECK" condition="ISPUBLIC IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_ENTRYCATEGORY.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_ENTRYCATEGORY.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,15 +17,15 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_KENTRYCATEGORY">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="K_CATEGORYVALUE" name="KCATEGORYVALUE_KENTRYCATEGORY">
+        <reference local="K_CATEGORYVALUE_ID" foreign="K_CATEGORYVALUE_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="K_CATEGORY" name="KCATEGORY_KENTRYCATEGORY">
         <reference local="K_CATEGORY_ID" foreign="K_CATEGORY_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="K_CATEGORYVALUE" name="KCATEGORYVALUE_KENTRYCATEGORY">
-        <reference local="K_CATEGORYVALUE_ID" foreign="K_CATEGORYVALUE_ID"/>
-      </foreign-key>
       <foreign-key foreignTable="K_ENTRY" name="KENTRY_KENTRYCATALOG">
         <reference local="K_ENTRY_ID" foreign="K_ENTRY_ID"/>
       </foreign-key>
-      <check name="K_ENTRYCATEGORY_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_ENTRYCATEGORY_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_ENTRYRELATED.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_ENTRYRELATED.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -23,6 +23,6 @@
       <foreign-key foreignTable="K_ENTRY" name="KENTRY_KENTRYRELATEDID">
         <reference local="K_ENTRYRELATED_ID" foreign="K_ENTRY_ID"/>
       </foreign-key>
-      <check name="K_ENTRYRELATED_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_ENTRYRELATED_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_SOURCE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_SOURCE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,6 +17,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_KSOURCE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="K_SOURCE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_SOURCE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_SYNONYM.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_SYNONYM.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -17,6 +17,6 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_KSYNONYM">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="K_SYNONYM_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_SYNONYM_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_TOPIC.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_TOPIC.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -24,7 +24,7 @@
       <foreign-key foreignTable="K_TYPE" name="KTYPE_KTOPIC">
         <reference local="K_TYPE_ID" foreign="K_TYPE_ID"/>
       </foreign-key>
-      <check name="K_TOPIC_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="K_TOPIC_ISPUBLIC_CHECK" condition="IsPublic in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_TOPIC_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="K_TOPIC_ISPUBLIC_CHECK" condition="ISPUBLIC IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/K_TYPE.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/K_TYPE.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,7 +20,7 @@
       <foreign-key foreignTable="AD_ORG" name="ADORG_KTYPE">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="K_TYPE_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="K_TYPE_ISPUBLIC_CHECK" condition="IsPublic in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="K_TYPE_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="K_TYPE_ISPUBLIC_CHECK" condition="ISPUBLIC IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/MA_CALCSTD.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/MA_CALCSTD.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -26,6 +26,6 @@
       <foreign-key foreignTable="MA_PROCESSPLAN_VERSION" name="MA_PROCPLANVERSION_MACALCSTD">
         <reference local="MA_PROCESSPLAN_VERSION_ID" foreign="MA_PROCESSPLAN_VERSION_ID"/>
       </foreign-key>
-      <check name="MA_CALCSTD_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="MA_CALCSTD_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/MA_CCP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/MA_CCP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -25,7 +25,7 @@
       <foreign-key foreignTable="MA_CCP_GROUP" name="MA_CCP_GROUP_MACCP">
         <reference local="MA_CCP_GROUP_ID" foreign="MA_CCP_GROUP_ID"/>
       </foreign-key>
-      <check name="MA_CCP_CRITICAL_CHECK" condition="Critical in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="MA_CCP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="MA_CCP_CRITICAL_CHECK" condition="CRITICAL IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="MA_CCP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/MA_CCP_GROUP.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/MA_CCP_GROUP.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,7 +20,7 @@
       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MACCPGROUP">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
-      <check name="MACCPGR_HASSECPRODUCT_CHECK" condition="HasSecProduct in (&apos;Y&apos;,&apos;N&apos;)"/>
-      <check name="MA_CCP_GROUP_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="MACCPGR_HASSECPRODUCT_CHECK" condition="HASSECPRODUCT IN (&apos;Y&apos;, &apos;N&apos;)"/>
+      <check name="MA_CCP_GROUP_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/MA_CCP_SHIFT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/MA_CCP_SHIFT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -22,6 +22,6 @@
       <foreign-key foreignTable="MA_CCP_GROUP" name="MA_CCP_GROUP_MACCPSHIFT">
         <reference local="MA_CCP_GROUP_ID" foreign="MA_CCP_GROUP_ID"/>
       </foreign-key>
-      <check name="MA_CCP_SHIFT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="MA_CCP_SHIFT_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/MA_CONSUMEPRODUCT.xml	Fri Dec 14 15:42:26 2007 +0000
+++ b/database/model/tables/MA_CONSUMEPRODUCT.xml	Fri Dec 14 16:05:32 2007 +0000
@@ -20,6 +20,6 @@
       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_MACONSUMEPRODUCT">
         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       </foreign-key>
-      <check name="MA_CONSUMEPRODU_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
+      <check name="MA_CONSUMEPRODU_ISACTIVE_CHECK" condition="ISACTIVE IN (&apos;Y&apos;, &apos;N&apos;)"/>
     </table>
   </database>
--- a/database/model/tables/MA_CONSUMERM.xml	Fri Dec 14 15:42:26 2007 +0000