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/charge/charge_construct.xml
2011-05-03 09:49:04 +10:00

144 lines
4.1 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>charge</module>
<!-- Module supporting database table -->
<table>charge</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>date_orig</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>
<sweep_type>sweep_type,status</sweep_type>
<service_id>account_id,service_id</service_id>
<sss>site_id,service_id,status</sss>
</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>Processed</display>
<index>1</index>
<type>L</type>
</status>
<sweep_type>
<display>Charge Schedule</display>
<type>I4</type>
</sweep_type>
<account_id>
<asso_table>account</asso_table>
<asso_field>username</asso_field>
<display>Account</display>
<type>I8</type>
<validate>any</validate>
</account_id>
<product_id>
<asso_table>product</asso_table>
<asso_field>sku</asso_field>
<display>Product</display>
<type>I4</type>
</product_id>
<service_id>
<display>Service</display>
<type>I4</type>
<type>I4</type>
</service_id>
<amount>
<display>Amount</display>
<type>F</type>
<validate>float</validate>
</amount>
<quantity>
<display>Quantity</display>
<type>F</type>
<validate>float</validate>
</quantity>
<taxable>
<display>Taxable</display>
<type>L</type>
</taxable>
<attributes>
<display>Attributes</display>
<type>X2</type>
</attributes>
<description>
<display>Description</display>
<type>C(32)</type>
</description>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes,description</add>
<delete>id</delete>
<update>id,status,sweep_type,amount,quantity,taxable,attributes,description</update>
<search_export>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</search_export>
<search>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</search>
<view>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes,description</view>
<export_excel>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</export_excel>
<export_xml>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</export_xml>
<export_tab>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</export_tab>
<export_csv>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</export_csv>
<import>id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</import>
</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>
<date_orig>
<field>date_orig</field>
<type>date</type>
</date_orig>
<account_id>
<field>account_id</field>
</account_id>
<status>
<field>status</field>
<type>bool</type>
</status>
<amount>
<field>amount</field>
<type>currency</type>
</amount>
</search_show>
</tpl>
</construct>