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_financial_account_id
</name>
22 <type>int unsigned
</type>
23 <title>Financial Transaction From Account
</title>
24 <comment>FK to financial_account table.
</comment>
27 <table>civicrm_financial_account
</table>
28 <keyColumn>id
</keyColumn>
29 <labelColumn>name
</labelColumn>
36 <name>from_financial_account_id
</name>
37 <table>civicrm_financial_account
</table>
42 <name>to_financial_account_id
</name>
43 <title>Financial Transaction To Account
</title>
44 <type>int unsigned
</type>
45 <comment>FK to financial_financial_account table.
</comment>
48 <table>civicrm_financial_account
</table>
49 <keyColumn>id
</keyColumn>
50 <labelColumn>name
</labelColumn>
57 <name>to_financial_account_id
</name>
58 <table>civicrm_financial_account
</table>
63 <name>trxn_date
</name>
64 <title>Financial Transaction Date
</title>
66 <default>NULL
</default>
67 <comment>date transaction occurred
</comment>
70 <type>Select Date
</type>
71 <formatType>activityDateTime
</formatType>
75 <name>total_amount
</name>
76 <title>Financial Total Amount
</title>
78 <required>true
</required>
79 <comment>amount of transaction
</comment>
83 <name>fee_amount
</name>
84 <title>Financial Fee Amount
</title>
86 <comment>actual processor fee if known - may be
0.
</comment>
90 <name>net_amount
</name>
91 <title>Financial Net Amount
</title>
93 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
98 <title>Financial Currency
</title>
101 <default>NULL
</default>
102 <import>true
</import>
103 <headerPattern>/cur(rency)?/i
</headerPattern>
104 <dataPattern>/^[A-Z]{
3}$/
</dataPattern>
105 <comment>3 character string, value from config setting or input via user.
</comment>
108 <table>civicrm_currency
</table>
109 <keyColumn>name
</keyColumn>
110 <labelColumn>full_name
</labelColumn>
111 <nameColumn>name
</nameColumn>
112 <abbrColumn>symbol
</abbrColumn>
119 <name>is_payment
</name>
120 <title>Is Payment?
</title>
123 <import>true
</import>
124 <comment>Is this entry either a payment or a reversal of a payment?
</comment>
129 <title>Transaction ID
</title>
132 <comment>Transaction id supplied by external processor. This may not be unique.
</comment>
140 <name>UI_ftrxn_trxn_id
</name>
141 <fieldName>trxn_id
</fieldName>
145 <name>trxn_result_code
</name>
146 <title>Transaction Result Code
</title>
149 <comment>processor result code
</comment>
153 <name>status_id
</name>
154 <title>Financial Transaction Status Id
</title>
155 <type>int unsigned
</type>
156 <import>true
</import>
157 <export>true
</export>
159 <optionGroupName>contribution_status
</optionGroupName>
161 <comment>pseudo FK to civicrm_option_value of contribution_status_id option_group
</comment>
162 <headerPattern>/status/i
</headerPattern>
166 <name>payment_processor_id
</name>
167 <title>Payment Processor
</title>
168 <type>int unsigned
</type>
169 <comment>Payment Processor for this financial transaction
</comment>
171 <table>civicrm_payment_processor
</table>
172 <keyColumn>id
</keyColumn>
173 <labelColumn>name
</labelColumn>
181 <name>payment_processor_id
</name>
182 <table>civicrm_payment_processor
</table>
184 <onDelete>SET NULL
</onDelete>
188 <name>payment_instrument_id
</name>
189 <uniqueName>financial_trxn_payment_instrument_id
</uniqueName>
190 <title>Payment Method
</title>
191 <type>int unsigned
</type>
192 <comment>FK to payment_instrument option group values
</comment>
194 <optionGroupName>payment_instrument
</optionGroupName>
202 <name>UI_ftrxn_payment_instrument_id
</name>
203 <fieldName>payment_instrument_id
</fieldName>
207 <name>card_type_id
</name>
208 <uniqueName>financial_trxn_card_type_id
</uniqueName>
209 <title>Card Type ID
</title>
210 <type>int unsigned
</type>
211 <comment>FK to accept_creditcard option group values
</comment>
213 <optionGroupName>accept_creditcard
</optionGroupName>
221 <name>check_number
</name>
222 <uniqueName>financial_trxn_check_number
</uniqueName>
223 <title>Check Number
</title>
224 <comment>Check number
</comment>
234 <name>UI_ftrxn_check_number
</name>
235 <fieldName>check_number
</fieldName>
239 <name>pan_truncation
</name>
240 <uniqueName>financial_trxn_pan_truncation
</uniqueName>
241 <title>PAN Truncation
</title>
248 <comment>Last
4 digits of credit card
</comment>
252 <name>order_reference
</name>
253 <uniqueName>financial_trxn_order_reference
</uniqueName>
254 <title>Order Reference
</title>
261 <comment>Payment Processor external order reference
</comment>