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 <type>int unsigned
</type>
12 <required>true
</required>
17 <autoincrement>true
</autoincrement>
20 <name>from_account_id
</name>
21 <type>int unsigned
</type>
22 <comment>FK to financial_account table.
</comment>
27 <name>from_account_id
</name>
28 <table>civicrm_financial_account
</table>
34 <name>to_account_id
</name>
35 <type>int unsigned
</type>
36 <comment>FK to financial_account table.
</comment>
41 <name>to_account_id
</name>
42 <table>civicrm_financial_account
</table>
48 <name>from_financial_account_id
</name>
49 <type>int unsigned
</type>
50 <comment>FK to financial_account table.
</comment>
53 <table>civicrm_financial_account
</table>
54 <keyColumn>id
</keyColumn>
55 <labelColumn>name
</labelColumn>
59 <name>from_financial_account_id
</name>
60 <table>civicrm_financial_account
</table>
65 <name>to_financial_account_id
</name>
66 <type>int unsigned
</type>
67 <comment>FK to financial_financial_account table.
</comment>
70 <table>civicrm_financial_account
</table>
71 <keyColumn>id
</keyColumn>
72 <labelColumn>name
</labelColumn>
76 <name>to_financial_account_id
</name>
77 <table>civicrm_financial_account
</table>
82 <name>trxn_date
</name>
84 <default>NULL
</default>
85 <comment>date transaction occurred
</comment>
89 <name>trxn_type
</name>
91 <values>Debit,Credit
</values>
92 <required>true
</required>
97 <name>total_amount
</name>
99 <required>true
</required>
100 <comment>amount of transaction
</comment>
104 <name>fee_amount
</name>
106 <comment>actual processor fee if known - may be
0.
</comment>
110 <name>net_amount
</name>
112 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
116 <name>currency
</name>
119 <default>NULL
</default>
120 <import>true
</import>
121 <headerPattern>/cur(rency)?/i
</headerPattern>
122 <dataPattern>/^[A-Z]{
3}$/
</dataPattern>
123 <comment>3 character string, value from config setting or input via user.
</comment>
126 <table>civicrm_currency
</table>
127 <keyColumn>name
</keyColumn>
128 <labelColumn>symbol
</labelColumn>
132 <name>payment_processor
</name>
135 <required>true
</required>
136 <comment>derived from Processor setting in civicrm.settings.php.
</comment>
144 <comment>user-specified unique processor transaction id, bank id + trans id,... depending on payment_method
</comment>
148 <name>trxn_result_code
</name>
151 <comment>processor result code
</comment>
155 <name>status_id
</name>
156 <title>Financial Transaction Status Id
</title>
157 <type>int unsigned
</type>
158 <import>true
</import>
159 <export>true
</export>
160 <comment>pseudo FK to civicrm_option_value of financial_item status option_group
</comment>
161 <headerPattern>/status/i
</headerPattern>
165 <name>payment_processor_id
</name>
166 <type>int unsigned
</type>
167 <comment>Payment Processor for this financial transaction
</comment>
171 <name>payment_processor_id
</name>
172 <table>civicrm_payment_processor
</table>
174 <onDelete>SET NULL
</onDelete>
178 <name>payment_instrument_id
</name>
179 <uniqueName>financial_trxn_payment_instrument_id
</uniqueName>
180 <title>Payment Instrument
</title>
181 <type>int unsigned
</type>
182 <comment>FK to payment_instrument option group values
</comment>
184 <optionGroupName>payment_instrument
</optionGroupName>
189 <name>UI_ftrxn_payment_instrument_id
</name>
190 <fieldName>payment_instrument_id
</fieldName>
194 <name>check_number
</name>
195 <uniqueName>financial_trxn_check_number
</uniqueName>
196 <title>Check Number
</title>
197 <comment>Check number
</comment>
204 <name>UI_ftrxn_check_number
</name>
205 <fieldName>check_number
</fieldName>