1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Financial
</base>
5 <class>EntityFinancialAccount
</class>
6 <name>civicrm_entity_financial_account
</name>
8 <comment>Map between an entity and a financial account, where there is a specific relationship between the financial account and the entity, e.g. Income Account for or AR Account for
</comment>
10 <component>CiviContribute
</component>
13 <title>Entity Financial Account ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
21 <autoincrement>true
</autoincrement>
24 <name>entity_table
</name>
25 <title>Entity Table
</title>
28 <required>true
</required>
31 <comment>Links to an entity_table like civicrm_financial_type
</comment>
34 <name>entity_id
</name>
35 <title>Entity ID
</title>
36 <type>int unsigned
</type>
37 <required>true
</required>
39 <comment>Links to an id in the entity_table, such as vid in civicrm_financial_type
</comment>
42 <idColumn>entity_id
</idColumn>
43 <typeColumn>entity_table
</typeColumn>
47 <name>account_relationship
</name>
48 <title>Account Relationship
</title>
49 <type>int unsigned
</type>
50 <required>true
</required>
52 <comment>FK to a new civicrm_option_value (account_relationship)
</comment>
54 <optionGroupName>account_relationship
</optionGroupName>
61 <name>financial_account_id
</name>
62 <type>int unsigned
</type>
63 <title>Financial Account
</title>
64 <required>true
</required>
66 <comment>FK to the financial_account_id
</comment>
68 <table>civicrm_financial_account
</table>
69 <keyColumn>id
</keyColumn>
70 <labelColumn>name
</labelColumn>
77 <name>financial_account_id
</name>
78 <table>civicrm_financial_account
</table>
81 <onDelete>RESTRICT
</onDelete>
84 <name>index_entity_id_entity_table_account_relationship
</name>
85 <fieldName>entity_id
</fieldName>
86 <fieldName>entity_table
</fieldName>
87 <fieldName>account_relationship
</fieldName>