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>civicrm/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>
32 <autoincrement>true
</autoincrement>
35 <name>contact_id
</name>
36 <type>int unsigned
</type>
37 <uniqueName>grant_contact_id
</uniqueName>
38 <title>Contact ID
</title>
40 <required>true
</required>
41 <comment>Contact ID of contact record given grant belongs to.
</comment>
44 <type>EntityRef
</type>
45 <label>Contact
</label>
49 <name>contact_id
</name>
50 <table>civicrm_contact
</table>
53 <onDelete>CASCADE
</onDelete>
56 <name>application_received_date
</name>
57 <title>Application received date
</title>
58 <uniqueName>grant_application_received_date
</uniqueName>
62 <comment>Date on which grant application was received by donor.
</comment>
65 <type>Select Date
</type>
66 <formatType>activityDate
</formatType>
70 <name>decision_date
</name>
71 <title>Decision date
</title>
72 <uniqueName>grant_decision_date
</uniqueName>
74 <comment>Date on which grant decision was made.
</comment>
78 <type>Select Date
</type>
79 <formatType>activityDate
</formatType>
83 <name>money_transfer_date
</name>
84 <uniqueName>grant_money_transfer_date
</uniqueName>
85 <title>Grant Money transfer date
</title>
87 <comment>Date on which grant money transfer was made.
</comment>
91 <type>Select Date
</type>
92 <formatType>activityDate
</formatType>
96 <name>grant_due_date
</name>
98 <title>Grant Report Due Date
</title>
99 <comment>Date on which grant report is due.
</comment>
101 <import>true
</import>
103 <type>Select Date
</type>
104 <formatType>activityDate
</formatType>
108 <name>grant_report_received
</name>
109 <title>Grant report received
</title>
111 <comment>Yes/No field stating whether grant report was received by donor.
</comment>
112 <import>true
</import>
115 <type>CheckBox
</type>
119 <name>grant_type_id
</name>
120 <type>int unsigned
</type>
121 <title>Grant Type
</title>
123 <optionGroupName>grant_type
</optionGroupName>
128 <export>true
</export>
129 <required>true
</required>
130 <comment>Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
</comment>
134 <name>index_grant_type_id
</name>
135 <fieldName>grant_type_id
</fieldName>
139 <name>amount_total
</name>
140 <title>Total Amount
</title>
142 <required>true
</required>
143 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
144 <import>true
</import>
145 <comment>Requested grant amount, in default currency.
</comment>
152 <name>amount_requested
</name>
153 <title>Amount Requested
</title>
155 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
156 <comment>Requested grant amount, in original currency (optional).
</comment>
163 <name>amount_granted
</name>
164 <title>Amount granted
</title>
166 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
167 <import>true
</import>
168 <comment>Granted amount, in default currency.
</comment>
175 <name>currency
</name>
176 <title>Grant Currency
</title>
179 <required>true
</required>
180 <comment>3 character string, value from config setting or input via user.
</comment>
183 <table>civicrm_currency
</table>
184 <keyColumn>name
</keyColumn>
185 <labelColumn>full_name
</labelColumn>
186 <nameColumn>name
</nameColumn>
187 <abbrColumn>symbol
</abbrColumn>
194 <name>rationale
</name>
196 <title>Grant Rationale
</title>
197 <comment>Grant rationale.
</comment>
199 <type>TextArea
</type>
203 <import>true
</import>
207 <name>status_id
</name>
208 <type>int unsigned
</type>
209 <title>Grant Status
</title>
210 <uniqueName>grant_status_id
</uniqueName>
211 <required>true
</required>
212 <import>true
</import>
213 <export>false
</export>
214 <comment>ID of Grant status.
</comment>
216 <optionGroupName>grant_status
</optionGroupName>
224 <name>index_status_id
</name>
225 <fieldName>status_id
</fieldName>
229 <name>financial_type_id
</name>
230 <title>Financial Type ID
</title>
231 <type>int unsigned
</type>
232 <default>NULL
</default>
234 <table>civicrm_financial_type
</table>
235 <keyColumn>id
</keyColumn>
236 <labelColumn>name
</labelColumn>
238 <comment>FK to Financial Type.
</comment>
240 <label>Financial Type
</label>
245 <name>financial_type_id
</name>
246 <table>civicrm_financial_type
</table>
248 <onDelete>SET NULL
</onDelete>