Commit | Line | Data |
---|---|---|
3c7d2158 | 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
6a488035 | 2 | |
3c7d2158 | 3 | <table> |
4 | <base>CRM/Financial</base> | |
5 | <class>FinancialType</class> | |
6 | <name>civicrm_financial_type</name> | |
7 | <add>1.3</add> | |
6a488035 | 8 | <comment>Formerly civicrm_contribution_type merged into this table in 4.3</comment> |
3c7d2158 | 9 | <log>true</log> |
10 | <field> | |
11 | <name>id</name> | |
0d94665e | 12 | <title>Financial Type ID</title> |
6a488035 TO |
13 | <type>int unsigned</type> |
14 | <length>10</length> | |
3c7d2158 | 15 | <required>true</required> |
16 | <comment>ID of original financial_type so you can search this table by the financial_type.id and then select the relevant version based on the timestamp</comment> | |
6a488035 TO |
17 | <add>1.3</add> |
18 | </field> | |
3c7d2158 | 19 | <primaryKey> |
20 | <name>id</name> | |
21 | <autoincrement>true</autoincrement> | |
22 | </primaryKey> | |
6a488035 TO |
23 | <field> |
24 | <name>name</name> | |
3c7d2158 | 25 | <uniqueName>financial_type</uniqueName> |
6a488035 TO |
26 | <title>Financial Type</title> |
27 | <type>varchar</type> | |
28 | <length>64</length> | |
3c7d2158 | 29 | <required>true</required> |
6a488035 TO |
30 | <import>true</import> |
31 | <headerPattern>/(finan(cial)?)?type/i</headerPattern> | |
32 | <dataPattern>/donation|member|campaign/i</dataPattern> | |
33 | <comment>Financial Type Name.</comment> | |
251808cb PN |
34 | <html> |
35 | <type>Text</type> | |
36 | <label>Name</label> | |
37 | </html> | |
6a488035 | 38 | <add>1.3</add> |
da6b7c62 MW |
39 | <pseudoconstant> |
40 | <table>civicrm_financial_type</table> | |
41 | <keyColumn>id</keyColumn> | |
42 | <labelColumn>name</labelColumn> | |
43 | </pseudoconstant> | |
6a488035 TO |
44 | </field> |
45 | <field> | |
46 | <name>accounting_code</name> | |
47 | <title>Accounting Code</title> | |
48 | <type>varchar</type> | |
49 | <length>64</length> | |
50 | <export>true</export> | |
51 | <comment>Optional value for mapping contributions to accounting system codes for each type/category of contribution.</comment> | |
52 | <add>1.3</add> | |
53 | <drop>4.3</drop> | |
54 | </field> | |
55 | <field> | |
56 | <name>description</name> | |
57 | <type>varchar</type> | |
251808cb PN |
58 | <html> |
59 | <type>TextArea</type> | |
60 | <rows>6</rows> | |
61 | <cols>50</cols> | |
62 | <label>Description</label> | |
63 | </html> | |
6a488035 TO |
64 | <length>255</length> |
65 | <comment>Financial Type Description.</comment> | |
66 | <add>1.3</add> | |
67 | </field> | |
68 | <field> | |
69 | <name>is_deductible</name> | |
32ac94e8 | 70 | <title>Is Tax Deductible?</title> |
6a488035 | 71 | <type>boolean</type> |
3c7d2158 | 72 | <length>4</length> |
6a488035 TO |
73 | <default>1</default> |
74 | <comment>Is this financial type tax-deductible? If true, contributions of this type may be fully OR partially deductible - non-deductible amount is stored in the Contribution record.</comment> | |
75 | <add>1.3</add> | |
251808cb PN |
76 | <html> |
77 | <type>CheckBox</type> | |
78 | <label>Tax-Deductible?</label> | |
79 | </html> | |
6a488035 TO |
80 | </field> |
81 | <field> | |
82 | <name>is_reserved</name> | |
32ac94e8 | 83 | <title>Financial Type is Reserved?</title> |
6a488035 | 84 | <type>boolean</type> |
3c7d2158 | 85 | <length>4</length> |
6a488035 TO |
86 | <comment>Is this a predefined system object?</comment> |
87 | <add>1.3</add> | |
251808cb PN |
88 | <html> |
89 | <type>CheckBox</type> | |
90 | <label>Reserved?</label> | |
91 | </html> | |
6a488035 TO |
92 | </field> |
93 | <field> | |
94 | <name>is_active</name> | |
95 | <type>boolean</type> | |
56b7523d | 96 | <title>Financial Type Is Active?</title> |
3c7d2158 | 97 | <length>4</length> |
6a488035 TO |
98 | <comment>Is this property active?</comment> |
99 | <add>1.3</add> | |
251808cb PN |
100 | <html> |
101 | <type>CheckBox</type> | |
102 | <label>Enabled?</label> | |
103 | </html> | |
6a488035 TO |
104 | </field> |
105 | <index> | |
106 | <name>UI_id</name> | |
107 | <fieldName>id</fieldName> | |
108 | <unique>true</unique> | |
109 | <add>4.3</add> | |
110 | </index> | |
111 | </table> |