1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Financial
</base>
5 <class>FinancialAccount
</class>
6 <name>civicrm_financial_account
</name>
11 <type>int unsigned
</type>
12 <required>true
</required>
18 <autoincrement>true
</autoincrement>
24 <required>true
</required>
25 <comment>Financial Account Name.
</comment>
29 <name>contact_id
</name>
30 <uniqueName>financial_account_contact_id
</uniqueName>
31 <title>Contact ID
</title>
32 <type>int unsigned
</type>
33 <comment>FK to Contact ID that is responsible for the funds in this account
</comment>
37 <name>contact_id
</name>
38 <table>civicrm_contact
</table>
41 <onDelete>SET NULL
</onDelete>
44 <name>account_type_id
</name>
45 <type>int unsigned
</type>
46 <required>true
</required>
51 <name>financial_account_type_id
</name>
52 <type>int unsigned
</type>
53 <required>true
</required>
56 <comment>pseudo FK into civicrm_option_value.
</comment>
58 <optionGroupName>financial_account_type
</optionGroupName>
65 <name>accounting_code
</name>
66 <title>Accounting Code
</title>
70 <comment>Optional value for mapping monies owed and received to accounting system codes.
</comment>
74 <name>account_type_code
</name>
75 <title>Account Type Code
</title>
79 <comment>Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).
</comment>
83 <name>description
</name>
86 <comment>Financial Type Description.
</comment>
90 <name>parent_id
</name>
91 <type>int unsigned
</type>
92 <comment>Parent ID in account hierarchy
</comment>
96 <name>parent_id
</name>
97 <table>civicrm_financial_account
</table>
102 <name>is_header_account
</name>
105 <comment>Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?
</comment>
109 <name>is_deductible
</name>
112 <comment>Is this account tax-deductible?
</comment>
119 <comment>Is this account for taxes?
</comment>
123 <name>tax_rate
</name>
125 <length>10,
8</length>
126 <comment>The percentage of the total_amount that is due for this tax.
</comment>
130 <name>is_reserved
</name>
132 <comment>Is this a predefined system object?
</comment>
136 <name>is_active
</name>
138 <comment>Is this property active?
</comment>
142 <name>is_default
</name>
144 <comment>Is this account the default one (or default tax one) for its financial_account_type?
</comment>
149 <fieldName>name
</fieldName>
150 <unique>true
</unique>