src-db/database/model/tables/C_GLITEM.xml
changeset 8504 802eae4a434d
parent 7466 7f50029b3ac3
child 8505 a2bb7e6fb443
equal deleted inserted replaced
8503:0af5e794505b 8504:802eae4a434d
    74         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
    74         <reference local="C_TAXCATEGORY_ID" foreign="C_TAXCATEGORY_ID"/>
    75       </foreign-key>
    75       </foreign-key>
    76       <foreign-key foreignTable="C_WITHHOLDING" name="C_GLITEM_C_WITHHOLDING">
    76       <foreign-key foreignTable="C_WITHHOLDING" name="C_GLITEM_C_WITHHOLDING">
    77         <reference local="C_WITHHOLDING_ID" foreign="C_WITHHOLDING_ID"/>
    77         <reference local="C_WITHHOLDING_ID" foreign="C_WITHHOLDING_ID"/>
    78       </foreign-key>
    78       </foreign-key>
    79       <check name="C_GLITEM_FINCAT_CHECK"><![CDATA[((ENABLEINFININVOICES = 'Y') AND (C_TAXCATEGORY_ID IS NOT NULL)) OR ((ENABLEINFININVOICES = 'N') AND (C_TAXCATEGORY_ID IS NULL))]]></check>
       
    80       <check name="C_GLITEM_FININVOICES_CHECK"><![CDATA[ENABLEINFININVOICES IN ('Y', 'N')]]></check>
       
    81       <check name="C_GLITEM_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
    82       <check name="C_GLITEM_TAXANDCAT_CHECK"><![CDATA[(((C_TAXCATEGORY_ID IS NOT NULL) AND (C_TAX_ID IS NULL)) AND (C_WITHHOLDING_ID IS NULL)) OR (C_TAXCATEGORY_ID IS NULL)]]></check>
       
    83       <check name="C_GLITEM_TAXANDWH_CHECK"><![CDATA[(C_TAX_ID IS NULL) OR (C_WITHHOLDING_ID IS NULL)]]></check>
       
    84     </table>
    79     </table>
    85   </database>
    80   </database>