1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <name>civicrm_grant
</name>
6 <description>Funds applied for and given out by this organization.
</description>
7 <comment>This table stores information about grants given to a contact.
</comment>
11 <component>CiviGrant
</component>
13 <add>civicrm/grant/add?reset=
1&action=add
&context=standalone
</add>
14 <view>civicrm/contact/view/grant?reset=
1&action=view
&id=[id]
&cid=[contact_id]
</view>
15 <update>civicrm/contact/view/grant?reset=
1&action=update
&id=[id]
&cid=[contact_id]
</update>
16 <delete>civicrm/contact/view/grant?reset=
1&action=delete
&id=[id]
&cid=[contact_id]
</delete>
20 <type>int unsigned
</type>
21 <uniqueName>grant_id
</uniqueName>
22 <title>Grant ID
</title>
23 <required>true
</required>
24 <comment>Unique Grant id
</comment>
33 <autoincrement>true
</autoincrement>
36 <name>contact_id
</name>
37 <type>int unsigned
</type>
38 <uniqueName>grant_contact_id
</uniqueName>
39 <title>Contact ID
</title>
41 <required>true
</required>
42 <comment>Contact ID of contact record given grant belongs to.
</comment>
45 <type>EntityRef
</type>
46 <label>Contact
</label>
50 <name>contact_id
</name>
51 <table>civicrm_contact
</table>
54 <onDelete>CASCADE
</onDelete>
57 <name>application_received_date
</name>
58 <title>Application received date
</title>
59 <uniqueName>grant_application_received_date
</uniqueName>
63 <comment>Date on which grant application was received by donor.
</comment>
66 <type>Select Date
</type>
67 <formatType>activityDate
</formatType>
71 <name>decision_date
</name>
72 <title>Decision date
</title>
73 <uniqueName>grant_decision_date
</uniqueName>
75 <comment>Date on which grant decision was made.
</comment>
79 <type>Select Date
</type>
80 <formatType>activityDate
</formatType>
84 <name>money_transfer_date
</name>
85 <uniqueName>grant_money_transfer_date
</uniqueName>
86 <title>Grant Money transfer date
</title>
88 <comment>Date on which grant money transfer was made.
</comment>
92 <type>Select Date
</type>
93 <formatType>activityDate
</formatType>
97 <name>grant_due_date
</name>
99 <title>Grant Report Due Date
</title>
100 <comment>Date on which grant report is due.
</comment>
102 <import>true
</import>
104 <type>Select Date
</type>
105 <formatType>activityDate
</formatType>
109 <name>grant_report_received
</name>
110 <title>Grant report received
</title>
112 <comment>Yes/No field stating whether grant report was received by donor.
</comment>
113 <import>true
</import>
116 <type>CheckBox
</type>
120 <name>grant_type_id
</name>
121 <type>int unsigned
</type>
122 <title>Grant Type
</title>
124 <optionGroupName>grant_type
</optionGroupName>
129 <export>true
</export>
130 <required>true
</required>
131 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
135 <name>index_grant_type_id
</name>
136 <fieldName>grant_type_id
</fieldName>
140 <name>amount_total
</name>
141 <title>Total Amount
</title>
143 <required>true
</required>
144 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
145 <import>true
</import>
146 <comment>Requested grant amount, in default currency.
</comment>
153 <name>amount_requested
</name>
154 <title>Amount Requested
</title>
156 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
157 <comment>Requested grant amount, in original currency (optional).
</comment>
164 <name>amount_granted
</name>
165 <title>Amount granted
</title>
167 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
168 <import>true
</import>
169 <comment>Granted amount, in default currency.
</comment>
176 <name>currency
</name>
177 <title>Grant Currency
</title>
180 <required>true
</required>
181 <comment>3 character string, value from config setting or input via user.
</comment>
184 <table>civicrm_currency
</table>
185 <keyColumn>name
</keyColumn>
186 <labelColumn>full_name
</labelColumn>
187 <nameColumn>name
</nameColumn>
188 <abbrColumn>symbol
</abbrColumn>
195 <name>rationale
</name>
197 <title>Grant Rationale
</title>
198 <comment>Grant rationale.
</comment>
200 <type>TextArea
</type>
204 <import>true
</import>
208 <name>status_id
</name>
209 <type>int unsigned
</type>
210 <title>Grant Status
</title>
211 <uniqueName>grant_status_id
</uniqueName>
212 <required>true
</required>
213 <import>true
</import>
214 <export>false
</export>
215 <comment>ID of Grant status.
</comment>
217 <optionGroupName>grant_status
</optionGroupName>
225 <name>index_status_id
</name>
226 <fieldName>status_id
</fieldName>
230 <name>financial_type_id
</name>
231 <title>Financial Type ID
</title>
232 <type>int unsigned
</type>
233 <default>NULL
</default>
235 <table>civicrm_financial_type
</table>
236 <keyColumn>id
</keyColumn>
237 <labelColumn>name
</labelColumn>
239 <comment>FK to Financial Type.
</comment>
241 <label>Financial Type
</label>
246 <name>financial_type_id
</name>
247 <table>civicrm_financial_type
</table>
249 <onDelete>SET NULL
</onDelete>