This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/tax/tax_construct.xml

83 lines
2.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- define the module name -->
<module>tax</module>
<!-- define the module table name -->
<table>tax</table>
<!-- define the module dependancy(s) -->
<dependancy>setup</dependancy>
<!-- define the DB cache in seconds -->
<cache>0</cache>
<!-- define the default order_by field for SQL queries -->
<order_by>zone</order_by>
<!-- define the methods -->
<limit>25</limit>
<!-- define database indexes -->
<index>
<country>country_id</country>
<zone>zone</zone>
</index>
<!-- define the fields -->
<field>
<id>
<type>I4</type>
<unique>1</unique>
<index>1</index>
</id>
<site_id>
<type>I4</type>
<index>1</index>
</site_id>
<country_id>
<type>I4</type>
<asso_table>country</asso_table>
<asso_field>name</asso_field>
<validate>any</validate>
</country_id>
<zone>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
</zone>
<description>
<type>C(255)</type>
<min_len>1</min_len>
<max_len>255</max_len>
<validate>any</validate>
</description>
<rate>
<type>F</type>
<min_len>2</min_len>
<max_len>6</max_len>
<validate>any</validate>
</rate>
<tax_id_collect>
<type>L</type>
</tax_id_collect>
<tax_id_name>
<type>C(32)</type>
</tax_id_name>
<tax_id_req>
<type>L</type>
</tax_id_req>
<tax_id_exempt>
<type>L</type>
</tax_id_exempt>
<tax_id_regex>
<type>C(255)</type>
</tax_id_regex>
</field>
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>id,site_id,country_id,zone,description,rate,tax_id_collect,tax_id_name,tax_id_req,tax_id_exempt,tax_id_regex</add>
<update>id,site_id,country_id,zone,description,rate,tax_id_collect,tax_id_name,tax_id_req,tax_id_exempt,tax_id_regex</update>
<delete>id,site_id,country_id,zone,description,rate,tax_id_collect,tax_id_name,tax_id_req,tax_id_exempt,tax_id_regex</delete>
<view>id,site_id,country_id,zone,description,rate,tax_id_collect,tax_id_name,tax_id_req,tax_id_exempt,tax_id_regex</view>
<search>id,site_id,country_id,zone,description,rate,tax_id_collect,tax_id_name,tax_id_req,tax_id_exempt,tax_id_regex</search>
</method>
<!-- define the method triggers -->
<trigger>0</trigger>
</construct>