1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Financial
</base>
5 <class>FinancialTrxn
</class>
6 <name>civicrm_financial_trxn
</name>
9 <component>CiviContribute
</component>
12 <title>Financial Transaction ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
19 <autoincrement>true
</autoincrement>
22 <name>from_financial_account_id
</name>
23 <type>int unsigned
</type>
24 <title>Financial Transaction From Account
</title>
25 <comment>FK to financial_account table.
</comment>
28 <table>civicrm_financial_account
</table>
29 <keyColumn>id
</keyColumn>
30 <labelColumn>name
</labelColumn>
37 <name>from_financial_account_id
</name>
38 <table>civicrm_financial_account
</table>
43 <name>to_financial_account_id
</name>
44 <title>Financial Transaction To Account
</title>
45 <type>int unsigned
</type>
46 <comment>FK to financial_financial_account table.
</comment>
49 <table>civicrm_financial_account
</table>
50 <keyColumn>id
</keyColumn>
51 <labelColumn>name
</labelColumn>
58 <name>to_financial_account_id
</name>
59 <table>civicrm_financial_account
</table>
64 <name>trxn_date
</name>
65 <title>Financial Transaction Date
</title>
67 <default>NULL
</default>
68 <comment>date transaction occurred
</comment>
71 <type>Select Date
</type>
72 <formatType>activityDateTime
</formatType>
76 <name>total_amount
</name>
77 <title>Financial Total Amount
</title>
79 <required>true
</required>
80 <comment>amount of transaction
</comment>
84 <name>fee_amount
</name>
85 <title>Financial Fee Amount
</title>
87 <comment>actual processor fee if known - may be
0.
</comment>
91 <name>net_amount
</name>
92 <title>Financial Net Amount
</title>
94 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
99 <title>Financial Currency
</title>
102 <default>NULL
</default>
103 <import>true
</import>
104 <headerPattern>/cur(rency)?/i
</headerPattern>
105 <dataPattern>/^[A-Z]{
3}$/
</dataPattern>
106 <comment>3 character string, value from config setting or input via user.
</comment>
109 <table>civicrm_currency
</table>
110 <keyColumn>name
</keyColumn>
111 <labelColumn>full_name
</labelColumn>
112 <nameColumn>name
</nameColumn>
113 <abbrColumn>symbol
</abbrColumn>
120 <name>is_payment
</name>
121 <title>Is Payment?
</title>
124 <import>true
</import>
125 <comment>Is this entry either a payment or a reversal of a payment?
</comment>
130 <title>Transaction ID
</title>
133 <comment>Transaction id supplied by external processor. This may not be unique.
</comment>
141 <name>UI_ftrxn_trxn_id
</name>
142 <fieldName>trxn_id
</fieldName>
146 <name>trxn_result_code
</name>
147 <title>Transaction Result Code
</title>
150 <comment>processor result code
</comment>
154 <name>status_id
</name>
155 <title>Financial Transaction Status Id
</title>
156 <type>int unsigned
</type>
157 <import>true
</import>
158 <export>true
</export>
160 <optionGroupName>contribution_status
</optionGroupName>
162 <comment>pseudo FK to civicrm_option_value of contribution_status_id option_group
</comment>
163 <headerPattern>/status/i
</headerPattern>
167 <name>payment_processor_id
</name>
168 <title>Payment Processor
</title>
169 <type>int unsigned
</type>
170 <comment>Payment Processor for this financial transaction
</comment>
172 <table>civicrm_payment_processor
</table>
173 <keyColumn>id
</keyColumn>
174 <labelColumn>name
</labelColumn>
182 <name>payment_processor_id
</name>
183 <table>civicrm_payment_processor
</table>
185 <onDelete>SET NULL
</onDelete>
189 <name>payment_instrument_id
</name>
190 <uniqueName>financial_trxn_payment_instrument_id
</uniqueName>
191 <title>Payment Method
</title>
192 <type>int unsigned
</type>
193 <comment>FK to payment_instrument option group values
</comment>
195 <optionGroupName>payment_instrument
</optionGroupName>
203 <name>UI_ftrxn_payment_instrument_id
</name>
204 <fieldName>payment_instrument_id
</fieldName>
208 <name>card_type_id
</name>
209 <uniqueName>financial_trxn_card_type_id
</uniqueName>
210 <title>Card Type ID
</title>
211 <type>int unsigned
</type>
212 <comment>FK to accept_creditcard option group values
</comment>
214 <optionGroupName>accept_creditcard
</optionGroupName>
222 <name>check_number
</name>
223 <uniqueName>financial_trxn_check_number
</uniqueName>
224 <title>Check Number
</title>
225 <comment>Check number
</comment>
235 <name>UI_ftrxn_check_number
</name>
236 <fieldName>check_number
</fieldName>
240 <name>pan_truncation
</name>
241 <uniqueName>financial_trxn_pan_truncation
</uniqueName>
242 <title>PAN Truncation
</title>
249 <comment>Last
4 digits of credit card
</comment>
253 <name>order_reference
</name>
254 <uniqueName>financial_trxn_order_reference
</uniqueName>
255 <title>Order Reference
</title>
262 <comment>Payment Processor external order reference
</comment>