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>
36 <callback>CRM_Financial_BAO_EntityFinancialAccount::entityTables
</callback>
40 <name>entity_id
</name>
41 <title>Entity ID
</title>
42 <type>int unsigned
</type>
43 <required>true
</required>
45 <comment>Links to an id in the entity_table, such as vid in civicrm_financial_type
</comment>
48 <idColumn>entity_id
</idColumn>
49 <typeColumn>entity_table
</typeColumn>
53 <name>account_relationship
</name>
54 <title>Account Relationship
</title>
55 <type>int unsigned
</type>
56 <required>true
</required>
58 <comment>FK to a new civicrm_option_value (account_relationship)
</comment>
60 <optionGroupName>account_relationship
</optionGroupName>
67 <name>financial_account_id
</name>
68 <type>int unsigned
</type>
69 <title>Financial Account ID
</title>
70 <required>true
</required>
72 <comment>FK to the financial_account_id
</comment>
74 <table>civicrm_financial_account
</table>
75 <keyColumn>id
</keyColumn>
76 <labelColumn>name
</labelColumn>
80 <label>Financial Account
</label>
84 <name>financial_account_id
</name>
85 <table>civicrm_financial_account
</table>
88 <onDelete>RESTRICT
</onDelete>
91 <name>index_entity_id_entity_table_account_relationship
</name>
92 <fieldName>entity_id
</fieldName>
93 <fieldName>entity_table
</fieldName>
94 <fieldName>account_relationship
</fieldName>