Commit 08a5880d authored by Rich's avatar Rich
Browse files

WIP

parent 302ce646
......@@ -180,6 +180,17 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
return TRUE;
}
/**
* Add valid_from_date
*
* @see https://lab.civicrm.org/extensions/ukgiftaid/-/issues/1
*/
public function upgrade_3109() {
$this->log('Adding Valid From Date');
$this->executeSqlFile('sql/add_valid_from_date.sql');
return TRUE;
}
private function setCustomFields() {
$amountCustomField = civicrm_api3('CustomField', 'getsingle', [
'custom_group_id' => "Gift_Aid",
......
......@@ -104,6 +104,22 @@
<column_name>start_date</column_name>
<custom_group_name>Gift_Aid_Declaration</custom_group_name>
</CustomField>
<CustomField>
<name>valid_from_date</name>
<label>Valid From Date</label>
<column_name>valid_from_date</column_name>
<custom_group_name>Gift_Aid_Declaration</custom_group_name>
<data_type>Date</data_type>
<html_type>Select Date</html_type>
<is_required>1</is_required>
<is_searchable>0</is_searchable>
<is_search_range>0</is_search_range>
<weight>4</weight>
<is_active>1</is_active>
<is_view>0</is_view>
<text_length>255</text_length>
<date_format>dd-mm-yy</date_format>
</CustomField>
<CustomField>
<name>End_Date</name>
<label>End Date</label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment