Commit | Line | Data |
---|---|---|
3c7d2158 | 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
6a488035 | 2 | |
3c7d2158 | 3 | <table> |
4 | <base>CRM/Financial</base> | |
5 | <class>EntityFinancialTrxn</class> | |
6 | <name>civicrm_entity_financial_trxn</name> | |
7 | <add>3.2</add> | |
d31fb4e3 | 8 | <component>CiviContribute</component> |
3c7d2158 | 9 | <field> |
10 | <name>id</name> | |
41b12fc8 | 11 | <title>Entity Financial Transaction ID</title> |
3c7d2158 | 12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>ID</comment> | |
0481e12c A |
15 | <html> |
16 | <type>Number</type> | |
17 | </html> | |
3c7d2158 | 18 | <add>3.2</add> |
19 | </field> | |
20 | <primaryKey> | |
21 | <name>id</name> | |
22 | <autoincrement>true</autoincrement> | |
23 | </primaryKey> | |
6a488035 TO |
24 | <field> |
25 | <name>entity_table</name> | |
41b12fc8 | 26 | <title>Entity Table</title> |
6a488035 TO |
27 | <type>varchar</type> |
28 | <length>64</length> | |
3c7d2158 | 29 | <required>true</required> |
6a488035 | 30 | <import>true</import> |
becebb63 | 31 | <pseudoconstant> |
32 | <callback>CRM_Financial_BAO_EntityFinancialTrxn::entityTables</callback> | |
33 | </pseudoconstant> | |
6a488035 | 34 | <add>3.2</add> |
2ecdffee | 35 | <comment>May contain civicrm_financial_item, civicrm_contribution, civicrm_financial_trxn, civicrm_grant, etc</comment> |
6a488035 | 36 | </field> |
3c7d2158 | 37 | <field> |
38 | <name>entity_id</name> | |
41b12fc8 | 39 | <title>Entity ID</title> |
3c7d2158 | 40 | <type>int unsigned</type> |
41 | <required>true</required> | |
42 | <add>3.2</add> | |
6a488035 | 43 | </field> |
71e5aa5c ARW |
44 | <dynamicForeignKey> |
45 | <idColumn>entity_id</idColumn> | |
46 | <typeColumn>entity_table</typeColumn> | |
3c7d2158 | 47 | <add>3.2</add> |
71e5aa5c | 48 | </dynamicForeignKey> |
3c7d2158 | 49 | <field> |
50 | <name>financial_trxn_id</name> | |
57e94608 | 51 | <title>Financial Transaction ID</title> |
3c7d2158 | 52 | <type>int unsigned</type> |
57e94608 A |
53 | <html> |
54 | <label>Financial Transaction</label> | |
55 | </html> | |
3c7d2158 | 56 | <add>3.2</add> |
57 | </field> | |
58 | <foreignKey> | |
59 | <name>financial_trxn_id</name> | |
60 | <table>civicrm_financial_trxn</table> | |
61 | <key>id</key> | |
62 | <add>3.2</add> | |
6a488035 TO |
63 | <onDelete>SET NULL</onDelete> |
64 | </foreignKey> | |
3c7d2158 | 65 | <field> |
66 | <name>amount</name> | |
41b12fc8 | 67 | <title>Amount</title> |
3c7d2158 | 68 | <type>decimal</type> |
6a488035 | 69 | <required>true</required> |
4d9dd529 PN |
70 | <import>true</import> |
71 | <headerPattern>/amount/i</headerPattern> | |
72 | <dataPattern>/^\d+(\.\d{2})?$/</dataPattern> | |
6a488035 | 73 | <comment>allocated amount of transaction to this entity</comment> |
3c7d2158 | 74 | <add>3.2</add> |
75 | </field> | |
b676923b PN |
76 | <index> |
77 | <name>UI_entity_financial_trxn_entity_table</name> | |
78 | <fieldName>entity_table</fieldName> | |
79 | <add>4.3</add> | |
3c7d2158 | 80 | </index> |
b676923b PN |
81 | <index> |
82 | <name>UI_entity_financial_trxn_entity_id</name> | |
83 | <fieldName>entity_id</fieldName> | |
84 | <add>4.3</add> | |
3c7d2158 | 85 | </index> |
6a488035 TO |
86 | </table> |
87 |