249 lines
5.8 KiB
XML
249 lines
5.8 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<construct>
|
|
<!-- Module name -->
|
|
<module>payment</module>
|
|
<!-- Module supporting database table -->
|
|
<table>payment</table>
|
|
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
|
|
<dependancy>invoice</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>1</version>
|
|
|
|
<!-- Database indexes -->
|
|
<index>
|
|
</index>
|
|
|
|
<!-- Database fields -->
|
|
<field>
|
|
<!-- Record ID -->
|
|
<id>
|
|
<display>Payment</display>
|
|
<index>1</index>
|
|
<type>I4</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>
|
|
<!-- Date record updated -->
|
|
<date_last>
|
|
<convert>date-now</convert>
|
|
<display>Date Updated</display>
|
|
<type>I8</type>
|
|
</date_last>
|
|
<!-- The account this payment belongs to -->
|
|
<account_id>
|
|
<asso_table>account</asso_table>
|
|
<asso_field>first_name,last_name</asso_field>
|
|
<type>I8</type>
|
|
<validate>any</validate>
|
|
</account_id>
|
|
<!-- Date Payment -->
|
|
<date_payment>
|
|
<convert>date-time</convert>
|
|
<display>Payment Date</display>
|
|
<type>I8</type>
|
|
</date_payment>
|
|
<!-- Checkout plugin for this payment -->
|
|
<checkout_plugin_id>
|
|
<asso_table>checkout</asso_table>
|
|
<asso_field>name</asso_field>
|
|
<display>Checkout Plugin</display>
|
|
<type>I4</type>
|
|
<validate>any</validate>
|
|
</checkout_plugin_id>
|
|
<!-- Checkout plugin data -->
|
|
<checkout_plugin_data>
|
|
<type>C(255)</type>
|
|
<convert>array</convert>
|
|
</checkout_plugin_data>
|
|
<!-- Gross payment amount (local currency) -->
|
|
<total_amt>
|
|
<type>F</type>
|
|
<validate>float</validate>
|
|
</total_amt>
|
|
<!-- Payment Fees (local currency) -->
|
|
<fees_amt>
|
|
<type>F</type>
|
|
</fees_amt>
|
|
<!-- The local currency for this payment -->
|
|
<billed_currency_id>
|
|
<type>I4</type>
|
|
</billed_currency_id>
|
|
<!-- The amount in billed_currency that was made -->
|
|
<actual_total_amt>
|
|
<type>F</type>
|
|
</actual_total_amt>
|
|
<!-- The currency this payment was paid -->
|
|
<actual_billed_currency_id>
|
|
<type>I4</type>
|
|
</actual_billed_currency_id>
|
|
<!-- Payment has been refunded when STATUS = 1 -->
|
|
<refund_status>
|
|
<display>Refund Status</display>
|
|
<type>L</type>
|
|
</refund_status>
|
|
<!-- Account who made payment -->
|
|
<source_id>
|
|
<asso_table>account</asso_table>
|
|
<asso_field>username</asso_field>
|
|
<display>Source</display>
|
|
<type>I8</type>
|
|
<validate>any</validate>
|
|
</source_id>
|
|
<!-- Whether payment has been cleared -->
|
|
<pending_status>
|
|
<display>Pending</display>
|
|
<type>L</type>
|
|
</pending_status>
|
|
<!-- IP Address of Client -->
|
|
<notes>
|
|
<type>X</type>
|
|
</notes>
|
|
<!-- IP Address of Client -->
|
|
<ip>
|
|
<type>C(32)</type>
|
|
</ip>
|
|
</field>
|
|
|
|
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
|
<method>
|
|
<add>account_id,date_payment,checkout_plugin_id,total_amt,fees_amt,notes,source_id</add>
|
|
<update>account_id,date_payment,checkout_plugin_id,total_amt,fees_amt,notes,pending_status</update>
|
|
<search>id,account_id,date_payment,checkout_plugin_id,total_amt,source_id</search>
|
|
<view>id,date_orig,account_id,date_payment,checkout_plugin_id,total_amt,fees_amt,notes,source_id</view>
|
|
</method>
|
|
|
|
<!-- Method triggers -->
|
|
<trigger></trigger>
|
|
|
|
<!-- Template page display titles -->
|
|
<title>
|
|
<view>Payment</view>
|
|
</title>
|
|
|
|
<!-- Template helpers -->
|
|
<tpl>
|
|
<search_show>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<account_id>
|
|
<field>account_id</field>
|
|
</account_id>
|
|
<source_id>
|
|
<field>source_id</field>
|
|
</source_id>
|
|
<checkout_plugin_id>
|
|
<field>checkout_plugin_id</field>
|
|
</checkout_plugin_id>
|
|
<date_payment>
|
|
<field>date_payment</field>
|
|
<type>date</type>
|
|
</date_payment>
|
|
<total_amt>
|
|
<field>total_amt</field>
|
|
<type>currency</type>
|
|
</total_amt>
|
|
</search_show>
|
|
<user_search_show>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<id>
|
|
<field>id</field>
|
|
</id>
|
|
<date_payment>
|
|
<field>date_orig</field>
|
|
<type>date</type>
|
|
</date_payment>
|
|
<total_amt>
|
|
<field>total_amt</field>
|
|
<type>currency</type>
|
|
</total_amt>
|
|
</user_search_show>
|
|
<ListUnallocated>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<id>
|
|
<field>id</field>
|
|
</id>
|
|
<account_id>
|
|
<field>account_id</field>
|
|
</account_id>
|
|
<date_payment>
|
|
<field>date_orig</field>
|
|
<type>date</type>
|
|
</date_payment>
|
|
<total_amt>
|
|
<field>total_amt</field>
|
|
<type>currency</type>
|
|
</total_amt>
|
|
<alloc_amt>
|
|
<field>alloc_amt</field>
|
|
<type>currency</type>
|
|
</alloc_amt>
|
|
<balance>
|
|
<field>balance</field>
|
|
<type>currency</type>
|
|
</balance>
|
|
<acct_bal>
|
|
<field>acct_bal</field>
|
|
</acct_bal>
|
|
</ListUnallocated>
|
|
<ListUnbalanced>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<id>
|
|
<field>id</field>
|
|
</id>
|
|
<account_id>
|
|
<field>account_id</field>
|
|
</account_id>
|
|
<invoice_id>
|
|
<field>invoice_id</field>
|
|
</invoice_id>
|
|
<date_payment>
|
|
<field>date_orig</field>
|
|
<type>date</type>
|
|
</date_payment>
|
|
<total_amt>
|
|
<field>total_amt</field>
|
|
<type>currency</type>
|
|
</total_amt>
|
|
<billed_amt>
|
|
<field>billed_amt</field>
|
|
<type>currency</type>
|
|
</billed_amt>
|
|
<alloc_amt>
|
|
<field>alloc_amt</field>
|
|
<type>currency</type>
|
|
</alloc_amt>
|
|
</ListUnbalanced>
|
|
</tpl>
|
|
</construct>
|