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>
54 <name>from_financial_account_id
</name>
55 <table>civicrm_financial_account
</table>
60 <name>to_financial_account_id
</name>
61 <type>int unsigned
</type>
62 <comment>FK to financial_financial_account table.
</comment>
66 <name>to_financial_account_id
</name>
67 <table>civicrm_financial_account
</table>
72 <name>trxn_date
</name>
74 <default>NULL
</default>
75 <comment>date transaction occurred
</comment>
79 <name>trxn_type
</name>
81 <values>Debit,Credit
</values>
82 <required>true
</required>
87 <name>total_amount
</name>
89 <required>true
</required>
90 <comment>amount of transaction
</comment>
94 <name>fee_amount
</name>
96 <comment>actual processor fee if known - may be
0.
</comment>
100 <name>net_amount
</name>
102 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
106 <name>currency
</name>
109 <default>NULL
</default>
110 <import>true
</import>
111 <headerPattern>/cur(rency)?/i
</headerPattern>
112 <dataPattern>/^[A-Z]{
3}$/
</dataPattern>
113 <comment>3 character string, value from config setting or input via user.
</comment>
117 <name>payment_processor
</name>
120 <required>true
</required>
121 <comment>derived from Processor setting in civicrm.settings.php.
</comment>
129 <comment>user-specified unique processor transaction id, bank id + trans id,... depending on payment_method
</comment>
133 <name>trxn_result_code
</name>
136 <comment>processor result code
</comment>
140 <name>status_id
</name>
141 <title>Financial Transaction Status Id
</title>
142 <type>int unsigned
</type>
143 <import>true
</import>
144 <export>true
</export>
145 <comment>pseudo FK to civicrm_option_value of financial_item status option_group
</comment>
146 <headerPattern>/status/i
</headerPattern>
150 <name>payment_processor_id
</name>
151 <type>int unsigned
</type>
152 <comment>Payment Processor for this financial transaction
</comment>
156 <name>payment_processor_id
</name>
157 <table>civicrm_payment_processor
</table>
159 <onDelete>SET NULL
</onDelete>
163 <name>payment_instrument_id
</name>
164 <uniqueName>financial_trxn_payment_instrument_id
</uniqueName>
165 <title>Payment Instrument
</title>
166 <type>int unsigned
</type>
167 <comment>FK to payment_instrument option group values
</comment>
169 <name>paymentInstrument
</name>
170 <optionGroupName>paymentInstrument
</optionGroupName>
171 <class>CRM_Contribute_PseudoConstant
</class>
176 <name>UI_ftrxn_payment_instrument_id
</name>
177 <fieldName>payment_instrument_id
</fieldName>
181 <name>check_number
</name>
182 <uniqueName>financial_trxn_check_number
</uniqueName>
183 <title>Check Number
</title>
184 <comment>Check number
</comment>
191 <name>UI_ftrxn_check_number
</name>
192 <fieldName>check_number
</fieldName>