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/net_term/net_term_construct.xml
2011-05-03 09:49:01 +10:00

136 lines
3.4 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>net_term</module>
<!-- Module supporting database table -->
<table>net_term</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>1</version>
<!-- Database indexes -->
<index>
</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>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>L</type>
</status>
<!-- Applicable to Group -->
<group_avail>
<type>X2</type>
<validate>any</validate>
<convert>array</convert>
</group_avail>
<!-- Checkout Plugins that this term is valid for -->
<checkout_id>
<type>X2</type>
<convert>array</convert>
</checkout_id>
<!-- Free form name for this term eg: NET30DAYS -->
<name>
<type>C(16)</type>
<min_len>2</min_len>
<max_len>16</max_len>
<validate>alphanumeric</validate>
<unique>1</unique>
</name>
<!-- @deprecate -->
<sku>
<type>C(16)</type>
<validate>alphanumeric</validate>
</sku>
<!-- Fee type if terms exceeded Fixed/Percentage -->
<fee_type>
<type>L</type>
</fee_type>
<!-- Fee $x or %x -->
<fee>
<type>F</type>
</fee>
<fee_day>
<type>I4</type>
</fee_day>
<!-- Day to suspend service (overrides last term date) -->
<suspend_day>
<type>I4</type>
</suspend_day>
<!-- Enable email notification for this term -->
<enable_emails>
<type>L</type>
</enable_emails>
<!-- How often to check for violations -->
<sweep_type>
<type>I4</type>
</sweep_type>
<!-- Terms: eg -7,7,14,21,28 (Negative terms ignored for new services to be provisioned) -->
<terms>
<type>C(32)</type>
<validate>any</validate>
</terms>
<!-- XX Number of days in advance of the service due date to generate invoices -->
<invoice_advance_gen>
<type>I4</type>
</invoice_advance_gen>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>status,group_avail,name,fee_type,fee,fee_day,suspend_day,enable_emails,sweep_type,terms,checkout_id</add>
<delete>id,status,group_avail,name,fee_type,fee,fee_day,suspend_day,enable_emails,sweep_type,terms,checkout_id</delete>
<search>id,status,name,fee</search>
<update>id,status,group_avail,name,fee_type,fee,fee_day,suspend_day,enable_emails,sweep_type,terms,checkout_id</update>
<view>id,status,group_avail,name,fee_type,fee,fee_day,suspend_day,enable_emails,sweep_type,terms,checkout_id</view>
</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>
<status>
<field>status</field>
<type>bool_icon</type>
<width>20px</width>
</status>
<name>
<field>name</field>
</name>
<fee>
<field>fee</field>
</fee>
</search_show>
</tpl>
</construct>