Commit b74bbdf3 authored by jaapjansma's avatar jaapjansma
Browse files

update

parents 4407cf42 4d3f92f4
......@@ -69,13 +69,25 @@ class CRM_Barnekreftbanking_Upgrader extends CRM_Barnekreftbanking_Upgrader_Base
));
} catch (Exception $e) {
// doesn't exist yet
civicrm_api3('OptionValue', 'create', array(
'option_group_id' => "civicrm_banking.plugin_types",
'name' => 'postprocessor_bkf_membership_extension',
'label' => E::ts('Barnekreft Membership Extension'),
'value' => 'CRM_Banking_PluginImpl_PostProcessor_BarnekreftMembershipExtension',
'is_default' => 0
));
civicrm_api3('OptionValue', 'create', [
'option_group_id' => "civicrm_banking.plugin_types",
'name' => 'postprocessor_bkf_membership_extension',
'label' => E::ts('Barnekreft Membership Extension'),
'value' => 'CRM_Banking_PluginImpl_PostProcessor_BarnekreftMembershipExtension',
'is_default' => 0
]);
}
try {
$result = civicrm_api3('OptionValue', 'getsingle', array('name' => 'NBAN_NO', 'option_group_id' => 'civicrm_banking.reference_types'));
} catch (Exception $e) {
// Add the NBAN_NO bank account type
civicrm_api3('OptionValue', 'create', [
'option_group_id' => 'civicrm_banking.reference_types',
'name' => 'NBAN_NO',
'label' => E::ts('Norwegian Bank Account Number'),
'value' => 'NBAN_NO',
]);
}
}
......@@ -173,4 +185,41 @@ class CRM_Barnekreftbanking_Upgrader extends CRM_Barnekreftbanking_Upgrader_Base
}
public function upgrade_1001() {
try {
civicrm_api3('OptionValue', 'getvalue', array(
'return' => "id",
'option_group_id' => "civicrm_banking.plugin_types",
'name' => "matcher_existing_membership_contribution",
));
} catch (Exception $e) {
// doesn't exist yet
civicrm_api3('OptionValue', 'create', array(
'option_group_id' => "civicrm_banking.plugin_types",
'name' => 'matcher_existing_membership_contribution',
'label' => E::ts('Existing Membership Contribution'),
'value' => 'CRM_Banking_PluginImpl_Matcher_ExistingMembershipContribution',
'is_default' => 0
));
}
try {
civicrm_api3('OptionValue', 'getvalue', array(
'return' => "id",
'option_group_id' => "civicrm_banking.plugin_types",
'name' => "postprocessor_bkf_membership_extension",
));
} catch (Exception $e) {
// doesn't exist yet
civicrm_api3('OptionValue', 'create', [
'option_group_id' => "civicrm_banking.plugin_types",
'name' => 'postprocessor_bkf_membership_extension',
'label' => E::ts('Barnekreft Membership Extension'),
'value' => 'CRM_Banking_PluginImpl_PostProcessor_BarnekreftMembershipExtension',
'is_default' => 0
]);
}
return true;
}
}
......@@ -13,8 +13,8 @@
<url desc="Documentation">https://lab.civicrm.org/partners/civicoop/barnekreftforeningen/barnekreftbanking/blob/master/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2019-11-18</releaseDate>
<version>1.0</version>
<releaseDate>2019-12-11</releaseDate>
<version>1.1</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.13</ver>
......
Markdown is supported
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