c6850f15cea41f752491cbe1c11510db9b34b29c
[civicrm-core.git] / xml / schema / Financial / FinancialType.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Financial</base>
5 <class>FinancialType</class>
6 <name>civicrm_financial_type</name>
7 <add>1.3</add>
8 <comment>Formerly civicrm_contribution_type merged into this table in 4.3</comment>
9 <log>true</log>
10 <component>CiviContribute</component>
11 <labelField>name</labelField>
12 <field>
13 <name>id</name>
14 <title>Financial Type ID</title>
15 <type>int unsigned</type>
16 <length>10</length>
17 <required>true</required>
18 <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>
19 <html>
20 <type>Number</type>
21 </html>
22 <add>1.3</add>
23 </field>
24 <primaryKey>
25 <name>id</name>
26 <autoincrement>true</autoincrement>
27 </primaryKey>
28 <field>
29 <name>name</name>
30 <uniqueName>financial_type</uniqueName>
31 <title>Financial Type</title>
32 <type>varchar</type>
33 <length>64</length>
34 <required>true</required>
35 <import>true</import>
36 <headerPattern>/(finan(cial)?)?type/i</headerPattern>
37 <dataPattern>/donation|member|campaign/i</dataPattern>
38 <comment>Financial Type Name.</comment>
39 <html>
40 <type>Text</type>
41 <label>Name</label>
42 </html>
43 <add>1.3</add>
44 </field>
45 <field>
46 <name>description</name>
47 <type>varchar</type>
48 <html>
49 <type>TextArea</type>
50 <rows>6</rows>
51 <cols>50</cols>
52 <label>Description</label>
53 </html>
54 <length>255</length>
55 <comment>Financial Type Description.</comment>
56 <add>1.3</add>
57 </field>
58 <field>
59 <name>is_deductible</name>
60 <title>Is Tax Deductible?</title>
61 <type>boolean</type>
62 <required>true</required>
63 <length>4</length>
64 <default>0</default>
65 <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>
66 <add>1.3</add>
67 <html>
68 <type>CheckBox</type>
69 <label>Tax-Deductible?</label>
70 </html>
71 </field>
72 <field>
73 <name>is_reserved</name>
74 <title>Financial Type is Reserved?</title>
75 <type>boolean</type>
76 <length>4</length>
77 <required>true</required>
78 <comment>Is this a predefined system object?</comment>
79 <add>1.3</add>
80 <default>0</default>
81 <html>
82 <type>CheckBox</type>
83 <label>Reserved?</label>
84 </html>
85 </field>
86 <field>
87 <name>is_active</name>
88 <type>boolean</type>
89 <default>1</default>
90 <title>Financial Type Is Active?</title>
91 <length>4</length>
92 <required>true</required>
93 <comment>Is this property active?</comment>
94 <add>1.3</add>
95 <html>
96 <type>CheckBox</type>
97 <label>Enabled?</label>
98 </html>
99 </field>
100 <index>
101 <name>UI_id</name>
102 <fieldName>id</fieldName>
103 <unique>true</unique>
104 <add>4.3</add>
105 </index>
106 </table>