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
2011-05-03 09:49:01 +10:00

139 lines
3.5 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>tax</module>
<!-- Module supporting database table -->
<table>tax</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy>setup</dependancy>
<!-- DB cache in seconds -->
<cache>15</cache>
<!-- Default order_by field for SQL queries -->
<order_by>zone</order_by>
<!-- Default SQL limit for SQL queries -->
<limit>25</limit>
<!-- Schema version (used to determine if the schema has change during upgrades) -->
<version>1</version>
<!-- Database indexes -->
<index>
<country>country_id</country>
<zone>zone</zone>
</index>
<!-- Database fields -->
<field>
<!-- Record ID -->
<id>
<index>1</index>
<type>I4</type>
<unique>1</unique>
</id>
<!-- Site ID -->
<site_id>
<index>1</index>
<type>I4</type>
</site_id>
<!-- Date record created -->
<date_orig>
<display>Date Created</display>
<type>I8</type>
</date_orig>
<!-- Date record updated -->
<date_last>
<convert>date-now</convert>
<display>Date Updated</display>
<type>I8</type>
</date_last>
<country_id>
<display>Country</display>
<type>I4</type>
<asso_table>country</asso_table>
<asso_field>name</asso_field>
<validate>any</validate>
</country_id>
<zone>
<display>Zone</display>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
</zone>
<description>
<display>Description</display>
<type>C(255)</type>
<min_len>1</min_len>
<max_len>255</max_len>
<validate>any</validate>
</description>
<rate>
<display>Tax Rate</display>
<type>F</type>
<min_len>2</min_len>
<max_len>6</max_len>
<validate>any</validate>
</rate>
<tax_id_collect>
<display>Collect Tax ID</display>
<type>L</type>
</tax_id_collect>
<tax_id_name>
<display>Tax ID Name</display>
<type>C(32)</type>
</tax_id_name>
<tax_id_req>
<display>Tax ID Required</display>
<type>L</type>
</tax_id_req>
<tax_id_exempt>
<display>Tax ID Exempt</display>
<type>L</type>
</tax_id_exempt>
<tax_id_regex>
<display>Tax ID Regexp</display>
<type>C(255)</type>
</tax_id_regex>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>country_id,zone,description,rate,tax_id_collect,tax_id_name,tax_id_req,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>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<add>Add Tax Definition</add>
<search_form>Search</search_form>
<view>Tax</view>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<country_id>
<field>country_id</field>
</country_id>
<zone>
<field>zone</field>
</zone>
<description>
<field>description</field>
</description>
<rate>
<field>rate</field>
</rate>
</search_show>
</tpl>
</construct>