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>
24 <autoincrement>true
</autoincrement>
27 <name>entity_table
</name>
28 <title>Entity Table
</title>
31 <required>true
</required>
34 <comment>Links to an entity_table like civicrm_financial_type
</comment>
37 <name>entity_id
</name>
38 <title>Entity ID
</title>
39 <type>int unsigned
</type>
40 <required>true
</required>
42 <comment>Links to an id in the entity_table, such as vid in civicrm_financial_type
</comment>
45 <idColumn>entity_id
</idColumn>
46 <typeColumn>entity_table
</typeColumn>
50 <name>account_relationship
</name>
51 <title>Account Relationship
</title>
52 <type>int unsigned
</type>
53 <required>true
</required>
55 <comment>FK to a new civicrm_option_value (account_relationship)
</comment>
57 <optionGroupName>account_relationship
</optionGroupName>
64 <name>financial_account_id
</name>
65 <type>int unsigned
</type>
66 <title>Financial Account ID
</title>
67 <required>true
</required>
69 <comment>FK to the financial_account_id
</comment>
71 <table>civicrm_financial_account
</table>
72 <keyColumn>id
</keyColumn>
73 <labelColumn>name
</labelColumn>
77 <label>Financial Account
</label>
81 <name>financial_account_id
</name>
82 <table>civicrm_financial_account
</table>
85 <onDelete>RESTRICT
</onDelete>
88 <name>index_entity_id_entity_table_account_relationship
</name>
89 <fieldName>entity_id
</fieldName>
90 <fieldName>entity_table
</fieldName>
91 <fieldName>account_relationship
</fieldName>