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>
62 <name>accounting_code
</name>
63 <title>Accounting Code
</title>
67 <comment>Optional value for mapping monies owed and received to accounting system codes.
</comment>
71 <name>account_type_code
</name>
72 <title>Account Type Code
</title>
76 <comment>Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).
</comment>
80 <name>description
</name>
83 <comment>Financial Type Description.
</comment>
87 <name>parent_id
</name>
88 <type>int unsigned
</type>
89 <comment>Parent ID in account hierarchy
</comment>
93 <name>parent_id
</name>
94 <table>civicrm_financial_account
</table>
99 <name>is_header_account
</name>
102 <comment>Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?
</comment>
106 <name>is_deductible
</name>
109 <comment>Is this account tax-deductible?
</comment>
116 <comment>Is this account for taxes?
</comment>
120 <name>tax_rate
</name>
122 <length>10,
8</length>
123 <comment>The percentage of the total_amount that is due for this tax.
</comment>
127 <name>is_reserved
</name>
129 <comment>Is this a predefined system object?
</comment>
133 <name>is_active
</name>
135 <comment>Is this property active?
</comment>
139 <name>is_default
</name>
141 <comment>Is this account the default one (or default tax one) for its financial_account_type?
</comment>
146 <fieldName>name
</fieldName>
147 <unique>true
</unique>