Skip to content
Snippets Groups Projects
Unverified Commit 9684d2f4 authored by mattwire's avatar mattwire Committed by GitHub
Browse files

Merge pull request #14395 from eileenmcnaughton/recur_status

#905 Add contribution recur statuses 'Processing' and 'Failing'
parents d7da8786 50a0869e
Branches
Tags
No related merge requests found
......@@ -9,3 +9,17 @@ SELECT @option_group_id_ps as option_group_id, {localize field='label'}`label`{/
FROM civicrm_option_value ov
INNER JOIN civicrm_option_group og
ON og.id = ov.option_group_id AND og.name = 'contribution_status';
SELECT @maxValue := MAX(CAST(value AS UNSIGNED)) FROM `civicrm_option_value` where option_group_id = @option_group_id_ps;
SELECT @maxWeight := MAX(weight) FROM `civicrm_option_value` where option_group_id = @option_group_id_ps;
INSERT INTO `civicrm_option_value` (
`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `weight`, `is_reserved`, `is_active`, `is_default`
)
VALUES(
@option_group_id_ps, {localize field='label'}'Processing'{/localize}, @maxValue + 1, 'Processing', @maxWeight + 1, 1 , 1 , 0
),
(
@option_group_id_ps, {localize field='label'}'Failing'{/localize}, @maxValue + 2, 'Failing', @maxWeight + 2, 1 , 1 , 0
)
ON DUPLICATE KEY UPDATE id=id;
This diff is collapsed.
......@@ -1054,6 +1054,8 @@ VALUES
(@option_group_id_crs, '{ts escape="sql"}Failed{/ts}' , 4, 'Failed' , NULL, 0, NULL, 4, NULL, 0, 1, 1, NULL, NULL, NULL),
(@option_group_id_crs, '{ts escape="sql"}In Progress{/ts}', 5, 'In Progress', NULL, 0, NULL, 5, NULL, 0, 1, 1, NULL, NULL, NULL),
(@option_group_id_crs, '{ts escape="sql"}Overdue{/ts}' , 6, 'Overdue' , NULL, 0, NULL, 6, NULL, 0, 1, 1, NULL, NULL, NULL),
(@option_group_id_crs, '{ts escape="sql"}Processing{/ts}' , 7, 'Processing' , NULL, 0, NULL, 7, NULL, 0, 1, 1, NULL, NULL, NULL),
(@option_group_id_crs, '{ts escape="sql"}Failing{/ts}' , 8, 'Failing' , NULL, 0, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL),
-- CiviCase - Activity Assignee Default
-- (`option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`, `icon`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment