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

152 lines
5.4 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>setup_invoice</module>
<!-- Module supporting database table -->
<table>setup_invoice</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy></dependancy>
<!-- DB cache in seconds -->
<cache>15</cache>
<!-- Default order_by field for SQL queries -->
<order_by>site_id</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>
<unique>1</unique>
</site_id>
<bill_to_company>
<type>L</type>
<default>1</default>
<display>Bill to company name</display>
<description>This field controls whether generated invoices should be addressed to the company name, or to the account holders name</description>
</bill_to_company>
<invoice_currency>
<type>C(8)</type>
<display>Currency Symbol to use on invoice</display>
<description>When rendering invoices, this symbol will be used to show the currency eg: $</description>
</invoice_currency>
<invoice_decimals>
<type>I4</type>
<default>2</default>
<display>Number of decimals to use for money amounts</display>
</invoice_decimals>
<items_summary_max>
<type>I4</type>
<default>16</default>
<display>Maximum number of summary line items to use on the summary page</display>
</items_summary_max>
<news>
<type>X</type>
<default></default>
<display>News to show on invoices</display>
<description>The news will show on the summary page</description>
</news>
<page_type>
<type>C(8)</type>
<default>blank</default>
<display>PDF Template for invoices</display>
<description>This is only applicable for FPDI templates</description>
</page_type>
<invoice_delivery>
<type>I4</type>
<display>Invoice delivery method</display>
</invoice_delivery>
<invoice_show_itemized>
<type>L</type>
<default>1</default>
<display>Show itemised items on the invoice</display>
</invoice_show_itemized>
<invoice_show_service_dates>
<type>L</type>
<default>1</default>
<display>Show date ranges with items</display>
<description>When showing itemised items, show the date ranges that the items are valid for</description>
</invoice_show_service_dates>
<!-- XX Number of days this invoice can remain unpaid before nagging (Can be override by account) Merge with setup:grace_period -->
<invoice_grace>
<type>I4</type>
</invoice_grace>
<invoice_advance_gen>
<type>I4</type>
<display>Generate invoices days in advance</display>
<description>Generate invoices this many days before the due date of the service item</description>
</invoice_advance_gen>
<!-- XX Default payment terms of an invoice -->
<invoice_terms>
<type>I4</type>
</invoice_terms>
<invoice_pdf_plugin>
<type>C(16)</type>
<default>overview</default>
<display>PDF Plugin for invoices</display>
<description>PDF Plugin to use when generating PDF invoices</description>
</invoice_pdf_plugin>
<!-- @deprecated Contact us URL to show on invoices, now use SSL_URL or NON-SSL_URL -->
<contact_us_url>
<type>C(64)</type>
</contact_us_url>
<!-- @deprecated Contact us phone to show on invoices, now use Contact Phone -->
<contact_us_phone>
<type>C(64)</type>
</contact_us_phone>
<advance_notice>
<type>I4</type>
<display>Upcoming invoices days in advance</display>
<description>Show upcoming invoices this many days before they would be generated</description>
</advance_notice>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<update>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,advance_notice,invoice_advance_gen</update>
<view>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,advance_notice,invoice_advance_gen</view>
<search>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,advance_notice</search>
<search_show>id,bill_to_company,invoice_currency,invoice_decimals,items_summary_max,news,page_type,invoice_show_itemized,invoice_show_service_dates,invoice_delivery,invoice_grace,invoice_advance_gen,invoice_terms,invoice_pdf_plugin,advance_notice</search_show>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<view>Setup Invoice</view>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<id>
<field>id</field>
</id>
<news>
<field>news</field>
<width>70%</width>
</news>
</search_show>
</tpl>
</construct>