1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Financial
</base>
5 <class>FinancialTrxn
</class>
6 <name>civicrm_financial_trxn
</name>
11 <title>Financial Transaction ID
</title>
12 <type>int unsigned
</type>
13 <required>true
</required>
18 <autoincrement>true
</autoincrement>
21 <name>from_account_id
</name>
22 <type>int unsigned
</type>
23 <comment>FK to financial_account table.
</comment>
28 <name>from_account_id
</name>
29 <table>civicrm_financial_account
</table>
35 <name>to_account_id
</name>
36 <type>int unsigned
</type>
37 <comment>FK to financial_account table.
</comment>
42 <name>to_account_id
</name>
43 <table>civicrm_financial_account
</table>
49 <name>from_financial_account_id
</name>
50 <type>int unsigned
</type>
51 <title>Financial Transaction From Account
</title>
52 <comment>FK to financial_account table.
</comment>
55 <table>civicrm_financial_account
</table>
56 <keyColumn>id
</keyColumn>
57 <labelColumn>name
</labelColumn>
64 <name>from_financial_account_id
</name>
65 <table>civicrm_financial_account
</table>
70 <name>to_financial_account_id
</name>
71 <title>Financial Transaction To Account
</title>
72 <type>int unsigned
</type>
73 <comment>FK to financial_financial_account table.
</comment>
76 <table>civicrm_financial_account
</table>
77 <keyColumn>id
</keyColumn>
78 <labelColumn>name
</labelColumn>
85 <name>to_financial_account_id
</name>
86 <table>civicrm_financial_account
</table>
91 <name>trxn_date
</name>
92 <title>Financial Transaction Date
</title>
94 <default>NULL
</default>
95 <comment>date transaction occurred
</comment>
99 <name>trxn_type
</name>
100 <title>Financial Transaction Type
</title>
102 <values>Debit,Credit
</values>
103 <required>true
</required>
108 <name>total_amount
</name>
109 <title>Financial Total Amount
</title>
111 <required>true
</required>
112 <comment>amount of transaction
</comment>
116 <name>fee_amount
</name>
117 <title>Financial Fee Amount
</title>
119 <comment>actual processor fee if known - may be
0.
</comment>
123 <name>net_amount
</name>
124 <title>Financial Net Amount
</title>
126 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
130 <name>currency
</name>
131 <title>Financial Currency
</title>
134 <default>NULL
</default>
135 <import>true
</import>
136 <headerPattern>/cur(rency)?/i
</headerPattern>
137 <dataPattern>/^[A-Z]{
3}$/
</dataPattern>
138 <comment>3 character string, value from config setting or input via user.
</comment>
141 <table>civicrm_currency
</table>
142 <keyColumn>name
</keyColumn>
143 <labelColumn>full_name
</labelColumn>
144 <nameColumn>numeric_code
</nameColumn>
151 <name>is_payment
</name>
152 <title>Is Payment?
</title>
155 <import>true
</import>
156 <comment>Is this entry either a payment or a reversal of a payment?
</comment>
160 <name>payment_processor
</name>
163 <required>true
</required>
164 <comment>derived from Processor setting in civicrm.settings.php.
</comment>
170 <title>Transaction ID
</title>
173 <comment>Transaction id supplied by external processor. This may not be unique.
</comment>
177 <name>UI_ftrxn_trxn_id
</name>
178 <fieldName>trxn_id
</fieldName>
182 <name>trxn_result_code
</name>
183 <title>Transaction result Code
</title>
186 <comment>processor result code
</comment>
190 <name>status_id
</name>
191 <title>Financial Transaction Status Id
</title>
192 <type>int unsigned
</type>
193 <import>true
</import>
194 <export>true
</export>
196 <optionGroupName>contribution_status
</optionGroupName>
198 <comment>pseudo FK to civicrm_option_value of contribution_status_id option_group
</comment>
199 <headerPattern>/status/i
</headerPattern>
203 <name>payment_processor_id
</name>
204 <title>Payment Processor
</title>
205 <type>int unsigned
</type>
206 <comment>Payment Processor for this financial transaction
</comment>
210 <name>payment_processor_id
</name>
211 <table>civicrm_payment_processor
</table>
213 <onDelete>SET NULL
</onDelete>
217 <name>payment_instrument_id
</name>
218 <uniqueName>financial_trxn_payment_instrument_id
</uniqueName>
219 <title>Payment Method
</title>
220 <type>int unsigned
</type>
221 <comment>FK to payment_instrument option group values
</comment>
223 <optionGroupName>payment_instrument
</optionGroupName>
231 <name>UI_ftrxn_payment_instrument_id
</name>
232 <fieldName>payment_instrument_id
</fieldName>
236 <name>check_number
</name>
237 <uniqueName>financial_trxn_check_number
</uniqueName>
238 <title>Check Number
</title>
239 <comment>Check number
</comment>
249 <name>UI_ftrxn_check_number
</name>
250 <fieldName>check_number
</fieldName>