CRM-15168 add some more titles
[civicrm-core.git] / xml / schema / Financial / FinancialAccount.xml
CommitLineData
3c7d2158 1<?xml version="1.0" encoding="iso-8859-1" ?>
6a488035 2
3c7d2158 3<table>
4 <base>CRM/Financial</base>
5 <class>FinancialAccount</class>
6 <name>civicrm_financial_account</name>
7 <add>3.2</add>
8 <log>true</log>
9 <field>
10 <name>id</name>
32ac94e8 11 <title>Financial Account ID</title>
3c7d2158 12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>ID</comment>
6a488035 15 <add>3.2</add>
3c7d2158 16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
6a488035
TO
21 <field>
22 <name>name</name>
32ac94e8 23 <title>Financial Account Name</title>
6a488035
TO
24 <type>varchar</type>
25 <length>255</length>
26 <required>true</required>
27 <comment>Financial Account Name.</comment>
28 <add>3.2</add>
29 </field>
3c7d2158 30 <field>
31 <name>contact_id</name>
6a488035
TO
32 <uniqueName>financial_account_contact_id</uniqueName>
33 <title>Contact ID</title>
3c7d2158 34 <type>int unsigned</type>
6a488035 35 <comment>FK to Contact ID that is responsible for the funds in this account</comment>
3c7d2158 36 <add>4.3</add>
37 </field>
38 <foreignKey>
39 <name>contact_id</name>
40 <table>civicrm_contact</table>
41 <key>id</key>
42 <add>4.3</add>
6a488035
TO
43 <onDelete>SET NULL</onDelete>
44 </foreignKey>
3c7d2158 45 <field>
46 <name>account_type_id</name>
47 <type>int unsigned</type>
48 <required>true</required>
49 <add>3.2</add>
6a488035 50 <drop>4.3</drop>
3c7d2158 51 </field>
52 <field>
53 <name>financial_account_type_id</name>
54 <type>int unsigned</type>
55 <required>true</required>
56 <default>3</default>
6a488035
TO
57 <add>4.3</add>
58 <comment>pseudo FK into civicrm_option_value.</comment>
7611ae71
AS
59 <pseudoconstant>
60 <optionGroupName>financial_account_type</optionGroupName>
61 </pseudoconstant>
614d72ec 62 <html>
e0991796 63 <type>Select</type>
614d72ec 64 </html>
6a488035
TO
65 </field>
66 <field>
67 <name>accounting_code</name>
68 <title>Accounting Code</title>
69 <type>varchar</type>
70 <length>64</length>
71 <export>true</export>
72 <comment>Optional value for mapping monies owed and received to accounting system codes.</comment>
73 <add>4.3</add>
74 </field>
75 <field>
76 <name>account_type_code</name>
77 <title>Account Type Code</title>
78 <type>varchar</type>
79 <length>64</length>
80 <export>true</export>
81 <comment>Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).</comment>
82 <add>4.3</add>
83 </field>
84 <field>
85 <name>description</name>
86 <type>varchar</type>
87 <length>255</length>
88 <comment>Financial Type Description.</comment>
89 <add>4.3</add>
90 </field>
91 <field>
92 <name>parent_id</name>
3c7d2158 93 <type>int unsigned</type>
94 <comment>Parent ID in account hierarchy</comment>
6a488035
TO
95 <add>4.3</add>
96 </field>
3c7d2158 97 <foreignKey>
98 <name>parent_id</name>
99 <table>civicrm_financial_account</table>
100 <key>id</key>
101 <add>4.3</add>
6a488035
TO
102 </foreignKey>
103 <field>
104 <name>is_header_account</name>
3c7d2158 105 <type>boolean</type>
106 <default>0</default>
107 <comment>Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?</comment>
6a488035
TO
108 <add>4.3</add>
109 </field>
110 <field>
111 <name>is_deductible</name>
112 <type>boolean</type>
113 <default>1</default>
114 <comment>Is this account tax-deductible?</comment>
115 <add>4.3</add>
116 </field>
117 <field>
118 <name>is_tax</name>
119 <type>boolean</type>
120 <default>0</default>
121 <comment>Is this account for taxes?</comment>
122 <add>4.3</add>
123 </field>
124 <field>
125 <name>tax_rate</name>
126 <type>decimal</type>
d544ffee 127 <length>10,8</length>
6a488035
TO
128 <comment>The percentage of the total_amount that is due for this tax.</comment>
129 <add>4.3</add>
130 </field>
131 <field>
132 <name>is_reserved</name>
133 <type>boolean</type>
134 <comment>Is this a predefined system object?</comment>
135 <add>4.3</add>
136 </field>
137 <field>
138 <name>is_active</name>
139 <type>boolean</type>
140 <comment>Is this property active?</comment>
141 <add>4.3</add>
142 </field>
143 <field>
144 <name>is_default</name>
145 <type>boolean</type>
146 <comment>Is this account the default one (or default tax one) for its financial_account_type?</comment>
147 <add>4.3</add>
148 </field>
149 <index>
150 <name>UI_name</name>
151 <fieldName>name</fieldName>
152 <unique>true</unique>
153 <add>4.3</add>
154 </index>
155</table>