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

101 lines
2.3 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- define the module name -->
<module>invoice_memo</module>
<!-- define the module table name -->
<table>invoice_memo</table>
<!-- define the module dependancy(s) -->
<dependancy>invoice</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>25</limit>
<!-- define database indexes -->
<index>
<invoice>invoice_id</invoice>
<memo>memo</memo>
</index>
<!-- Page Display Titles -->
<title>
<add>Add Invoice Memo</add>
<view>Invoice Memo</view>
</title>
<!-- define the fields -->
<field>
<id>
<type>I8</type>
</id>
<site_id>
<type>I4</type>
</site_id>
<date_orig>
<display>Date</display>
<type>I8</type>
<validate>date-time</validate>
<convert>date-now</convert>
</date_orig>
<invoice_id>
<display>Invoice</display>
<type>C(32)</type>
</invoice_id>
<account_id>
<display>Account</display>
<type>I8</type>
<asso_table>account</asso_table>
<asso_field>username</asso_field>
</account_id>
<type>
<display>Type</display>
<type>C(32)</type>
<validate>any</validate>
</type>
<memo>
<display>Memo</display>
<type>C(255)</type>
<validate>any</validate>
</memo>
<misc>
<type>C(32)</type>
</misc>
</field>
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>date_orig,invoice_id,account_id,type,memo</add>
<update>id,site_id,date_orig,invoice_id,account_id,type,memo</update>
<delete>id,site_id,date_orig,invoice_id,account_id,type,memo</delete>
<view>id,site_id,date_orig,invoice_id,account_id,type,memo</view>
<search>id,site_id,date_orig,invoice_id,account_id,type,memo</search>
</method>
<!-- define the method triggers -->
<trigger>0</trigger>
<!-- Template Helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<width>25px</width>
</checkbox>
<date_orig>
<field>date_orig</field>
</date_orig>
<account_id>
<field>account_id</field>
</account_id>
<type>
<field>type</field>
</type>
<memo>
<field>memo</field>
</memo>
</search_show>
</tpl>
</construct>