1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <name>civicrm_grant
</name>
6 <comment>This table stores information about grants given to a contact.
</comment>
10 <component>CiviGrant
</component>
12 <add>civicrm/grant/add?reset=
1&action=add
&context=standalone
</add>
13 <view>contact/view/grant?reset=
1&action=view
&id=[id]
&cid=[contact_id]
</view>
14 <update>civicrm/contact/view/grant?reset=
1&action=update
&id=[id]
&cid=[contact_id]
</update>
15 <delete>civicrm/contact/view/grant?reset=
1&action=delete
&id=[id]
&cid=[contact_id]
</delete>
19 <type>int unsigned
</type>
20 <uniqueName>grant_id
</uniqueName>
21 <title>Grant ID
</title>
22 <required>true
</required>
23 <comment>Unique Grant id
</comment>
29 <autoincrement>true
</autoincrement>
32 <name>contact_id
</name>
33 <type>int unsigned
</type>
34 <uniqueName>grant_contact_id
</uniqueName>
35 <title>Contact ID
</title>
37 <required>true
</required>
38 <comment>Contact ID of contact record given grant belongs to.
</comment>
41 <type>EntityRef
</type>
45 <name>contact_id
</name>
46 <table>civicrm_contact
</table>
49 <onDelete>CASCADE
</onDelete>
52 <name>application_received_date
</name>
53 <title>Application received date
</title>
54 <uniqueName>grant_application_received_date
</uniqueName>
58 <comment>Date on which grant application was received by donor.
</comment>
61 <type>Select Date
</type>
62 <formatType>activityDate
</formatType>
66 <name>decision_date
</name>
67 <title>Decision date
</title>
68 <uniqueName>grant_decision_date
</uniqueName>
70 <comment>Date on which grant decision was made.
</comment>
74 <type>Select Date
</type>
75 <formatType>activityDate
</formatType>
79 <name>money_transfer_date
</name>
80 <uniqueName>grant_money_transfer_date
</uniqueName>
81 <title>Grant Money transfer date
</title>
83 <comment>Date on which grant money transfer was made.
</comment>
87 <type>Select Date
</type>
88 <formatType>activityDate
</formatType>
92 <name>grant_due_date
</name>
94 <title>Grant Report Due Date
</title>
95 <comment>Date on which grant report is due.
</comment>
99 <type>Select Date
</type>
100 <formatType>activityDate
</formatType>
104 <name>grant_report_received
</name>
105 <title>Grant report received
</title>
107 <comment>Yes/No field stating whether grant report was received by donor.
</comment>
108 <import>true
</import>
111 <type>CheckBox
</type>
115 <name>grant_type_id
</name>
116 <type>int unsigned
</type>
117 <title>Grant Type
</title>
119 <optionGroupName>grant_type
</optionGroupName>
124 <export>true
</export>
125 <required>true
</required>
126 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
130 <name>index_grant_type_id
</name>
131 <fieldName>grant_type_id
</fieldName>
135 <name>amount_total
</name>
136 <title>Total Amount
</title>
138 <required>true
</required>
139 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
140 <import>true
</import>
141 <comment>Requested grant amount, in default currency.
</comment>
148 <name>amount_requested
</name>
149 <title>Amount Requested
</title>
151 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
152 <comment>Requested grant amount, in original currency (optional).
</comment>
159 <name>amount_granted
</name>
160 <title>Amount granted
</title>
162 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
163 <import>true
</import>
164 <comment>Granted amount, in default currency.
</comment>
171 <name>currency
</name>
172 <title>Grant Currency
</title>
175 <required>true
</required>
176 <comment>3 character string, value from config setting or input via user.
</comment>
179 <table>civicrm_currency
</table>
180 <keyColumn>name
</keyColumn>
181 <labelColumn>full_name
</labelColumn>
182 <nameColumn>name
</nameColumn>
183 <abbrColumn>symbol
</abbrColumn>
190 <name>rationale
</name>
192 <title>Grant Rationale
</title>
193 <comment>Grant rationale.
</comment>
195 <type>TextArea
</type>
199 <import>true
</import>
203 <name>status_id
</name>
204 <type>int unsigned
</type>
205 <title>Grant Status
</title>
206 <uniqueName>grant_status_id
</uniqueName>
207 <required>true
</required>
208 <import>true
</import>
209 <export>false
</export>
210 <comment>Id of Grant status.
</comment>
212 <optionGroupName>grant_status
</optionGroupName>
220 <name>index_status_id
</name>
221 <fieldName>status_id
</fieldName>
225 <name>financial_type_id
</name>
226 <title>Financial Type
</title>
227 <type>int unsigned
</type>
228 <default>NULL
</default>
230 <table>civicrm_financial_type
</table>
231 <keyColumn>id
</keyColumn>
232 <labelColumn>name
</labelColumn>
234 <comment>FK to Financial Type.
</comment>
238 <name>financial_type_id
</name>
239 <table>civicrm_financial_type
</table>
241 <onDelete>SET NULL
</onDelete>