database/model/tables/I_INVOICE.xml
changeset 238 006d2d0fdea6
parent 170 4b5493776a7f
child 258 a4855f55d8a1
--- 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>