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>
98 <type>Select Date
</type>
99 <formatType>activityDateTime
</formatType>
103 <name>trxn_type
</name>
104 <title>Financial Transaction Type
</title>
106 <values>Debit,Credit
</values>
107 <required>true
</required>
112 <name>total_amount
</name>
113 <title>Financial Total Amount
</title>
115 <required>true
</required>
116 <comment>amount of transaction
</comment>
120 <name>fee_amount
</name>
121 <title>Financial Fee Amount
</title>
123 <comment>actual processor fee if known - may be
0.
</comment>
127 <name>net_amount
</name>
128 <title>Financial Net Amount
</title>
130 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
134 <name>currency
</name>
135 <title>Financial Currency
</title>
138 <default>NULL
</default>
139 <import>true
</import>
140 <headerPattern>/cur(rency)?/i
</headerPattern>
141 <dataPattern>/^[A-Z]{
3}$/
</dataPattern>
142 <comment>3 character string, value from config setting or input via user.
</comment>
145 <table>civicrm_currency
</table>
146 <keyColumn>name
</keyColumn>
147 <labelColumn>full_name
</labelColumn>
148 <nameColumn>name
</nameColumn>
155 <name>is_payment
</name>
156 <title>Is Payment?
</title>
159 <import>true
</import>
160 <comment>Is this entry either a payment or a reversal of a payment?
</comment>
164 <name>payment_processor
</name>
167 <required>true
</required>
168 <comment>derived from Processor setting in civicrm.settings.php.
</comment>
174 <title>Transaction ID
</title>
177 <comment>Transaction id supplied by external processor. This may not be unique.
</comment>
185 <name>UI_ftrxn_trxn_id
</name>
186 <fieldName>trxn_id
</fieldName>
190 <name>trxn_result_code
</name>
191 <title>Transaction Result Code
</title>
194 <comment>processor result code
</comment>
198 <name>status_id
</name>
199 <title>Financial Transaction Status Id
</title>
200 <type>int unsigned
</type>
201 <import>true
</import>
202 <export>true
</export>
204 <optionGroupName>contribution_status
</optionGroupName>
206 <comment>pseudo FK to civicrm_option_value of contribution_status_id option_group
</comment>
207 <headerPattern>/status/i
</headerPattern>
211 <name>payment_processor_id
</name>
212 <title>Payment Processor
</title>
213 <type>int unsigned
</type>
214 <comment>Payment Processor for this financial transaction
</comment>
218 <name>payment_processor_id
</name>
219 <table>civicrm_payment_processor
</table>
221 <onDelete>SET NULL
</onDelete>
225 <name>payment_instrument_id
</name>
226 <uniqueName>financial_trxn_payment_instrument_id
</uniqueName>
227 <title>Payment Method
</title>
228 <type>int unsigned
</type>
229 <comment>FK to payment_instrument option group values
</comment>
231 <optionGroupName>payment_instrument
</optionGroupName>
239 <name>UI_ftrxn_payment_instrument_id
</name>
240 <fieldName>payment_instrument_id
</fieldName>
244 <name>card_type_id
</name>
245 <uniqueName>financial_trxn_card_type_id
</uniqueName>
246 <title>Card Type ID
</title>
247 <type>int unsigned
</type>
248 <comment>FK to accept_creditcard option group values
</comment>
250 <optionGroupName>accept_creditcard
</optionGroupName>
258 <name>check_number
</name>
259 <uniqueName>financial_trxn_check_number
</uniqueName>
260 <title>Check Number
</title>
261 <comment>Check number
</comment>
271 <name>UI_ftrxn_check_number
</name>
272 <fieldName>check_number
</fieldName>
276 <name>pan_truncation
</name>
277 <uniqueName>financial_trxn_pan_truncation
</uniqueName>
278 <title>Pan Truncation
</title>
285 <comment>Last
4 digits of credit card
</comment>