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>
59 <name>accounting_code
</name>
60 <title>Accounting Code
</title>
64 <comment>Optional value for mapping monies owed and received to accounting system codes.
</comment>
68 <name>account_type_code
</name>
69 <title>Account Type Code
</title>
73 <comment>Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).
</comment>
77 <name>description
</name>
80 <comment>Financial Type Description.
</comment>
84 <name>parent_id
</name>
85 <type>int unsigned
</type>
86 <comment>Parent ID in account hierarchy
</comment>
90 <name>parent_id
</name>
91 <table>civicrm_financial_account
</table>
96 <name>is_header_account
</name>
99 <comment>Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?
</comment>
103 <name>is_deductible
</name>
106 <comment>Is this account tax-deductible?
</comment>
113 <comment>Is this account for taxes?
</comment>
117 <name>tax_rate
</name>
119 <length>10,
8</length>
120 <comment>The percentage of the total_amount that is due for this tax.
</comment>
124 <name>is_reserved
</name>
126 <comment>Is this a predefined system object?
</comment>
130 <name>is_active
</name>
132 <comment>Is this property active?
</comment>
136 <name>is_default
</name>
138 <comment>Is this account the default one (or default tax one) for its financial_account_type?
</comment>
143 <fieldName>name
</fieldName>
144 <unique>true
</unique>