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/discount/discount_construct.xml

177 lines
5.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
2009-08-03 04:10:16 +00:00
<!-- Module name -->
<module>discount</module>
<!-- Module supporting database table -->
<table>discount</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy></dependancy>
<!-- DB cache in seconds -->
<cache>0</cache>
<!-- Default order_by field for SQL queries -->
<order_by>name</order_by>
<!-- Default SQL limit for SQL queries -->
<limit>25</limit>
<!-- Schema version (used to determine if the schema has change during upgrades) -->
<version>0</version>
<!-- Database indexes -->
<index>
<start>date_start</start>
<expire>date_expire</expire>
<status>status</status>
</index>
<!-- Database fields -->
<field>
<!-- Record ID -->
<id>
<index>1</index>
<type>I8</type>
<unique>1</unique>
</id>
<!-- Site ID -->
<site_id>
<index>1</index>
<type>I4</type>
</site_id>
<!-- Date record created -->
<date_orig>
<convert>date-now</convert>
<display>Date Created</display>
<type>I8</type>
</date_orig>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>L</type>
</status>
<date_start>
<convert>date</convert>
<display>Date Start</display>
<type>I8</type>
</date_start>
<date_expire>
<convert>date</convert>
<display>Date End</display>
<type>I8</type>
</date_expire>
<name>
<display>Name</display>
<min_len>2</min_len>
<max_len>32</max_len>
<type>C(64)</type>
<validate>any</validate>
</name>
<notes>
<display>Notes</display>
<type>X2</type>
</notes>
<max_usage_account>
<type>I4</type>
</max_usage_account>
<max_usage_global>
<type>I4</type>
</max_usage_global>
<avail_account_id>
<display>Account</display>
<type>I8</type>
</avail_account_id>
<avail_product_id>
<display>Product</display>
<type>X2</type>
<asso_table>country</asso_table>
<asso_field>name</asso_field>
<convert>array</convert>
</avail_product_id>
<avail_group_id>
<convert>array</convert>
<display>Group</display>
<type>X2</type>
</avail_group_id>
<avail_tld_id>
<convert>array</convert>
<display>Domain</display>
<type>X2</type>
</avail_tld_id>
<new_status>
<type>L</type>
</new_status>
<new_type>
<type>L</type>
</new_type>
<new_rate>
<type>F</type>
</new_rate>
<new_max_discount>
<type>F</type>
</new_max_discount>
<new_min_cost>
<type>F</type>
</new_min_cost>
<recurr_status>
<type>L</type>
</recurr_status>
<recurr_type>
<type>L</type>
</recurr_type>
<recurr_rate>
<type>F</type>
</recurr_rate>
<recurr_max_discount>
<type>F</type>
</recurr_max_discount>
<recurr_min_cost>
<type>F</type>
</recurr_min_cost>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>date_start,date_expire,status,name,notes,max_usage_account,max_usage_global,avail_account_id,avail_product_id,avail_group_id,avail_tld_id,new_status,new_type,new_rate,new_max_discount,new_min_cost,recurr_status,recurr_type,recurr_rate,recurr_max_discount,recurr_min_cost</add>
<update>id,site_id,date_orig,date_start,date_expire,status,name,notes,max_usage_account,max_usage_global,avail_account_id,avail_product_id,avail_group_id,avail_tld_id,new_status,new_type,new_rate,new_max_discount,new_min_cost,recurr_status,recurr_type,recurr_rate,recurr_max_discount,recurr_min_cost</update>
<delete>id,site_id,date_orig,date_start,date_expire,status,name,notes,max_usage_account,max_usage_global,avail_account_id,avail_product_id,avail_group_id,avail_tld_id,new_status,new_type,new_rate,new_max_discount,new_min_cost,recurr_status,recurr_type,recurr_rate,recurr_max_discount,recurr_min_cost</delete>
<view>id,site_id,date_orig,date_start,date_expire,status,name,notes,max_usage_account,max_usage_global,avail_account_id,avail_product_id,avail_group_id,avail_tld_id,new_status,new_type,new_rate,new_max_discount,new_min_cost,recurr_status,recurr_type,recurr_rate,recurr_max_discount,recurr_min_cost</view>
<search>id,site_id,date_orig,date_start,date_expire,status,name,notes,max_usage_account,max_usage_global,avail_account_id,new_status,new_type,new_rate,new_max_discount,new_min_cost,recurr_status,recurr_type,recurr_rate,recurr_max_discount,recurr_min_cost</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<status>
<field>status</field>
</status>
<orders>
<field>orders</field>
<translate>invoice_count</translate>
</orders>
<revenue>
<field>revenue</field>
<translate>revenue</translate>
</revenue>
<savings>
<field>savings</field>
<translate>savings</translate>
</savings>
<new_type>
<field>new_type</field>
</new_type>
</search_show>
</tpl>
</construct>