src-db/database/model/tables/C_TAX.xml
changeset 9922 4a2e9dbecf82
parent 8505 a2bb7e6fb443
equal deleted inserted replaced
9921:416da0ef63d4 9922:4a2e9dbecf82
   143       </column>
   143       </column>
   144       <column name="DOCTAXAMOUNT" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
   144       <column name="DOCTAXAMOUNT" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
   145         <default><![CDATA[D]]></default>
   145         <default><![CDATA[D]]></default>
   146         <onCreateDefault/>
   146         <onCreateDefault/>
   147       </column>
   147       </column>
       
   148       <column name="ISCASHVAT" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   149         <default><![CDATA[N]]></default>
       
   150         <onCreateDefault/>
       
   151       </column>
   148       <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRY_C_TAX">
   152       <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRY_C_TAX">
   149         <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
   153         <reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
   150       </foreign-key>
   154       </foreign-key>
   151       <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRYTO_C_TAX">
   155       <foreign-key foreignTable="C_COUNTRY" name="C_COUNTRYTO_C_TAX">
   152         <reference local="TO_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
   156         <reference local="TO_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
   180         <unique-column name="AD_ORG_ID"/>
   184         <unique-column name="AD_ORG_ID"/>
   181         <unique-column name="NAME"/>
   185         <unique-column name="NAME"/>
   182         <unique-column name="PARENT_TAX_ID"/>
   186         <unique-column name="PARENT_TAX_ID"/>
   183       </unique>
   187       </unique>
   184       <check name="C_TAX_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
   188       <check name="C_TAX_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
   189       <check name="C_TAX_ISCASHVAT_WH_CH"><![CDATA[((ISCASHVAT = 'Y') AND (ISWITHHOLDINGTAX = 'N')) OR (ISCASHVAT = 'N')]]></check>
   185       <check name="C_TAX_ISTAXDEDUCTABLE"><![CDATA[ISTAXDEDUCTABLE IN ('Y', 'N')]]></check>
   190       <check name="C_TAX_ISTAXDEDUCTABLE"><![CDATA[ISTAXDEDUCTABLE IN ('Y', 'N')]]></check>
   186     </table>
   191     </table>
   187   </database>
   192   </database>