Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,88 +1,142 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- define the module name -->
<module>charge</module>
<!-- define the module table name -->
<table>charge</table>
<!-- define the module dependancy(s) -->
<dependancy/>
<!-- define the DB cache in seconds -->
<cache>0</cache>
<!-- define the default order_by field for SQL queries -->
<order_by>date_orig</order_by>
<!-- define the methods -->
<limit>35</limit>
<!-- define the fields -->
<field>
<id>
<type>I8</type>
<unique>1</unique>
</id>
<site_id>
<type>I4</type>
</site_id>
<date_orig>
<type>I8</type>
</date_orig>
<status>
<type>L</type>
<index>1</index>
</status>
<sweep_type>
<type>I4</type>
</sweep_type>
<account_id>
<type>I8</type>
<asso_table>account</asso_table>
<asso_field>username</asso_field>
<validate>any</validate>
</account_id>
<product_id>
<type>I4</type>
<asso_table>product</asso_table>
<asso_field>sku</asso_field>
</product_id>
<service_id>
<type>I4</type>
</service_id>
<amount>
<type>F</type>
<validate>float</validate>
</amount>
<quantity>
<type>F</type>
<validate>float</validate>
</quantity>
<taxable>
<type>L</type>
</taxable>
<attributes>
<type>X2</type>
</attributes>
<description>
<type>C(32)</type>
</description>
</field>
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>id,site_id,date_orig,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>
<!-- define 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>
<!-- define the method triggers -->
<trigger>0</trigger>
<!-- 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>
</construct>

View File

@@ -1,62 +1,82 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<install>
<!-- Tree Menu Module Properties -->
<module_properties>
<name>charge</name>
<parent>account_admin</parent>
<notes><![CDATA[Stores incremental charges to be swept into a new invoice on a specified schedule]]></notes>
<!-- MODULE Dependancy, this module wont be installed if the dependant modules dont exist -->
<dependancy>invoice</dependancy>
<!-- Translated display to use on the tree -->
<display>Charges</display>
<!-- Display a module in the menu tree -->
<menu_display>1</menu_display>
<!-- MODULE Name -->
<name>charge</name>
<!-- MODULE Notes, these notes show up in the modules table, as a description of the module -->
<notes><![CDATA[Stores incremental charges to be swept into a new invoice on a specified schedule]]></notes>
<!-- MODULE Parent, the parent node in the tree -->
<parent>invoice</parent>
<!-- SUB Modules to install with this one -->
<sub_modules></sub_modules>
<!-- MODULE Type (core|base), core modules cannot be deleted, unrecognised types are ignored. -->
<type>base</type>
</module_properties>
<sql_inserts>
<module_method>
<add>
<name>add</name>
<page><![CDATA[%%:add]]></page>
<menu_display>1</menu_display>
</add>
<search_export>
<name>search_export</name>
</search_export>
<update>
<name>update</name>
</update>
<export_excel>
<name>export_excel</name>
</export_excel>
<delete>
<name>delete</name>
</delete>
<export_xml>
<name>export_xml</name>
</export_xml>
<view>
<name>view</name>
<page><![CDATA[core:search&module=%%&_escape=1]]></page>
<menu_display>1</menu_display>
</view>
<export_tab>
<name>export_tab</name>
</export_tab>
<search>
<name>search</name>
<page><![CDATA[%%:search_form]]></page>
<menu_display>1</menu_display>
</search>
<search_form>
<name>search_form</name>
</search_form>
<search_show>
<name>search_show</name>
</search_show>
<export_csv>
<name>export_csv</name>
</export_csv>
<import>
<name>import</name>
<page><![CDATA[core:import&module=%%]]></page>
<menu_display>1</menu_display>
</import>
<api>
<name>api</name>
</api>
</module_method>
</sql_inserts>
</install>
<!-- Tree Menu & Module Methods to load, they will be assigned the group permissions on install time, as selected by the user. -->
<module_method>
<add>
<display>Add</display>
<menu_display>1</menu_display>
<name>add</name>
<notes><![CDATA[Add records]]></notes>
</add>
<delete>
<name>delete</name>
<notes><![CDATA[Delete records]]></notes>
</delete>
<search>
<display>List</display>
<menu_display>1</menu_display>
<name>search</name>
<notes><![CDATA[List records]]></notes>
<page><![CDATA[core:search&module=%%&_next_page_one=view]]></page>
</search>
<search_form>
<name>search_form</name>
<notes><![CDATA[Search for records]]></notes>
</search_form>
<search_show>
<name>search_show</name>
<notes><![CDATA[Show the results of a search]]></notes>
</search_show>
<update>
<name>update</name>
<notes><![CDATA[Update a record]]></notes>
</update>
<view>
<name>view</name>
<notes><![CDATA[View a record]]></notes>
</view>
<api>
<name>api</name>
</api>
<export_csv>
<name>export_csv</name>
</export_csv>
<export_excel>
<name>export_excel</name>
</export_excel>
<export_tab>
<name>export_tab</name>
</export_tab>
<export_xml>
<name>export_xml</name>
</export_xml>
<search_export>
<name>search_export</name>
</search_export>
<import>
<name>import</name>
<page><![CDATA[core:import&module=%%]]></page>
<menu_display>1</menu_display>
</import>
</module_method>
</install>