2008-11-26 22:50:40 +00:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
|
|
<construct>
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- 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>
|
|
|
|
<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</add>
|
|
|
|
<search_export>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</search_export>
|
|
|
|
<update>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</update>
|
|
|
|
<export_excel>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</export_excel>
|
|
|
|
<delete>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</delete>
|
|
|
|
<export_xml>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</export_xml>
|
|
|
|
<view>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</view>
|
|
|
|
<export_tab>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</export_tab>
|
|
|
|
<search>id,site_id,date_orig,status,sweep_type,account_id,product_id,service_id,amount,quantity,taxable,attributes</search>
|
|
|
|
<export_csv>id,site_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>
|
2008-11-26 22:50:40 +00:00
|
|
|
</construct>
|