From: Tim Otten Date: Thu, 18 May 2023 05:26:54 +0000 (-0700) Subject: (REF) civicrm_option_groups - Use key-value-tree for activity_type X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fede369746edc41a6ba3a6c1d1372d7f277c6f8b;p=civicrm-core.git (REF) civicrm_option_groups - Use key-value-tree for activity_type --- diff --git a/sql/civicrm_option_groups/activity_type.sqldata.php b/sql/civicrm_option_groups/activity_type.sqldata.php index afd079a430..f42f87185a 100644 --- a/sql/civicrm_option_groups/activity_type.sqldata.php +++ b/sql/civicrm_option_groups/activity_type.sqldata.php @@ -7,80 +7,533 @@ return CRM_Core_CodeGen_OptionGroup::create('activity_type', 'a/0002') 'data_type' => 'Integer', 'option_value_fields' => 'name,label,description,icon', ]) - ->addValueTable(['label', 'name', 'value', 'weight'], [ - [ts('Meeting'), 'Meeting', '1', '1', 'is_reserved' => '1', 'icon' => 'fa-slideshare'], - [ts('Phone Call'), 'Phone Call', '2', '2', 'is_reserved' => '1', 'icon' => 'fa-phone'], - [ts('Email'), 'Email', '3', '3', 'filter' => '1', 'description' => ts('Email sent.'), 'is_reserved' => '1', 'icon' => 'fa-envelope-o'], - [ts('Outbound SMS'), 'SMS', '4', '4', 'filter' => '1', 'description' => ts('Text message (SMS) sent.'), 'is_reserved' => '1', 'icon' => 'fa-mobile'], - [ts('Event Registration'), 'Event Registration', '5', '5', 'filter' => '1', 'description' => ts('Online or offline event registration.'), 'is_reserved' => '1', 'component_id' => '1'], - [ts('Contribution'), 'Contribution', '6', '6', 'filter' => '1', 'description' => ts('Online or offline contribution.'), 'is_reserved' => '1', 'component_id' => '2'], - [ts('Membership Signup'), 'Membership Signup', '7', '7', 'filter' => '1', 'description' => ts('Online or offline membership signup.'), 'is_reserved' => '1', 'component_id' => '3'], - [ts('Membership Renewal'), 'Membership Renewal', '8', '8', 'filter' => '1', 'description' => ts('Online or offline membership renewal.'), 'is_reserved' => '1', 'component_id' => '3'], - [ts('Tell a Friend'), 'Tell a Friend', '9', '9', 'filter' => '1', 'description' => ts('Send information about a contribution campaign or event to a friend.'), 'is_reserved' => '1'], - [ts('Pledge Acknowledgment'), 'Pledge Acknowledgment', '10', '10', 'filter' => '1', 'description' => ts('Send Pledge Acknowledgment.'), 'is_reserved' => '1', 'component_id' => '6'], - [ts('Pledge Reminder'), 'Pledge Reminder', '11', '11', 'filter' => '1', 'description' => ts('Send Pledge Reminder.'), 'is_reserved' => '1', 'component_id' => '6'], - [ts('Inbound Email'), 'Inbound Email', '12', '12', 'filter' => '1', 'description' => ts('Inbound Email.'), 'is_reserved' => '1'], - - // Activity Types for case activities - [ts('Open Case'), 'Open Case', '13', '13', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-folder-open-o', 'description' => ''], - [ts('Follow up'), 'Follow up', '14', '14', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-share-square-o', 'description' => ''], - [ts('Change Case Type'), 'Change Case Type', '15', '15', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-random', 'description' => ''], - [ts('Change Case Status'), 'Change Case Status', '16', '16', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-pencil-square-o', 'description' => ''], - [ts('Change Case Subject'), 'Change Case Subject', '53', '53', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-pencil-square-o', 'description' => ''], - [ts('Change Custom Data'), 'Change Custom Data', '33', '33', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-table', 'description' => ''], - - [ts('Membership Renewal Reminder'), 'Membership Renewal Reminder', '17', '17', 'filter' => '1', 'description' => ts('offline membership renewal reminder.'), 'is_reserved' => '1', 'component_id' => '3'], - [ts('Change Case Start Date'), 'Change Case Start Date', '18', '18', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-calendar', 'description' => ''], - [ts('Bulk Email'), 'Bulk Email', '19', '19', 'filter' => '1', 'description' => ts('Bulk Email Sent.'), 'is_reserved' => '1'], - [ts('Assign Case Role'), 'Assign Case Role', '20', '20', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-user-plus', 'description' => ''], - [ts('Remove Case Role'), 'Remove Case Role', '21', '21', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-user-times', 'description' => ''], - [ts('Print/Merge Document'), 'Print PDF Letter', '22', '22', 'description' => ts('Export letters and other printable documents.'), 'is_reserved' => '1', 'icon' => 'fa-file-pdf-o'], - [ts('Merge Case'), 'Merge Case', '23', '23', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-compress', 'description' => ''], - [ts('Reassigned Case'), 'Reassigned Case', '24', '24', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-user-circle-o', 'description' => ''], - [ts('Link Cases'), 'Link Cases', '25', '25', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-link', 'description' => ''], - [ts('Change Case Tags'), 'Change Case Tags', '26', '26', 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-tags', 'description' => ''], - [ts('Add Client To Case'), 'Add Client To Case', '27', 27 - 1, 'is_reserved' => '1', 'component_id' => '7', 'icon' => 'fa-users', 'description' => ''], - - // Activity Types for CiviCampaign - // FIXME: These values+weights are out-of-step. Consider adjusting the weights. - [ts('Survey'), 'Survey', '28', 28 - 1, 'is_reserved' => '1', 'component_id' => '9', 'description' => ''], - [ts('Canvass'), 'Canvass', '29', 29 - 1, 'is_reserved' => '1', 'component_id' => '9', 'description' => ''], - [ts('PhoneBank'), 'PhoneBank', '30', 30 - 1, 'is_reserved' => '1', 'component_id' => '9', 'description' => ''], - [ts('WalkList'), 'WalkList', '31', 31 - 1, 'is_reserved' => '1', 'component_id' => '9', 'description' => ''], - [ts('Petition Signature'), 'Petition', '32', 32 - 1, 'is_reserved' => '1', 'component_id' => '9', 'description' => ''], - [ts('Mass SMS'), 'Mass SMS', '34', '34', 'filter' => '1', 'description' => ts('Mass SMS'), 'is_reserved' => '1'], - - // Additional Membership-related Activity Types - [ts('Change Membership Status'), 'Change Membership Status', '35', '35', 'filter' => '1', 'description' => ts('Change Membership Status.'), 'is_reserved' => '1', 'component_id' => '3'], - [ts('Change Membership Type'), 'Change Membership Type', '36', '36', 'filter' => '1', 'description' => ts('Change Membership Type.'), 'is_reserved' => '1', 'component_id' => '3'], - - [ts('Cancel Recurring Contribution'), 'Cancel Recurring Contribution', '37', '37', 'filter' => '1', 'is_reserved' => '1', 'component_id' => '2', 'description' => ''], - [ts('Update Recurring Contribution Billing Details'), 'Update Recurring Contribution Billing Details', '38', '38', 'filter' => '1', 'is_reserved' => '1', 'component_id' => '2', 'description' => ''], - [ts('Update Recurring Contribution'), 'Update Recurring Contribution', '39', '39', 'filter' => '1', 'is_reserved' => '1', 'component_id' => '2', 'description' => ''], - - [ts('Reminder Sent'), 'Reminder Sent', '40', '40', 'filter' => '1', 'is_reserved' => '1', 'description' => ''], - - // Activity Types for Financial Transactions Batch - // TODO: Shouldn't we have ts() for these descriptions? - [ts('Export Accounting Batch'), 'Export Accounting Batch', '41', '41', 'filter' => '1', 'description' => 'Export Accounting Batch', 'is_reserved' => '1', 'component_id' => '2'], - [ts('Create Batch'), 'Create Batch', '42', '42', 'filter' => '1', 'description' => 'Create Batch', 'is_reserved' => '1', 'component_id' => '2'], - [ts('Edit Batch'), 'Edit Batch', '43', '43', 'filter' => '1', 'description' => 'Edit Batch', 'is_reserved' => '1', 'component_id' => '2'], - - // new sms options - [ts('SMS delivery'), 'SMS delivery', '44', '44', 'filter' => '1', 'description' => ts('SMS delivery'), 'is_reserved' => '1'], - [ts('Inbound SMS'), 'Inbound SMS', '45', '45', 'filter' => '1', 'description' => ts('Inbound SMS'), 'is_reserved' => '1'], - - // Activity types for particial payment - [ts('Payment'), 'Payment', '46', '46', 'filter' => '1', 'description' => ts('Additional payment recorded for event or membership fee.'), 'is_reserved' => '1', 'component_id' => '2'], - [ts('Refund'), 'Refund', '47', '47', 'filter' => '1', 'description' => ts('Refund recorded for event or membership fee.'), 'is_reserved' => '1', 'component_id' => '2'], - - [ts('Change Registration'), 'Change Registration', '48', '48', 'filter' => '1', 'description' => ts('Changes to an existing event registration.'), 'is_reserved' => '1', 'component_id' => '1'], - - [ts('Downloaded Invoice'), 'Downloaded Invoice', '49', '49', 'filter' => '1', 'description' => ts('Downloaded Invoice.'), 'is_reserved' => '1'], - [ts('Emailed Invoice'), 'Emailed Invoice', '50', '50', 'filter' => '1', 'description' => ts('Emailed Invoice.'), 'is_reserved' => '1'], - - [ts('Contact Merged'), 'Contact Merged', '51', '51', 'filter' => '1', 'description' => ts('Contact Merged'), 'is_reserved' => '1'], - [ts('Contact Deleted by Merge'), 'Contact Deleted by Merge', '52', '52', 'filter' => '1', 'description' => ts('Contact was merged into another contact'), 'is_reserved' => '1'], - - [ts('Failed Payment'), 'Failed Payment', '54', '54', 'filter' => '1', 'description' => ts('Failed Payment'), 'is_reserved' => '1', 'component_id' => '2'], + ->addValues([ + [ + 'label' => ts('Meeting'), + 'value' => 1, + 'name' => 'Meeting', + 'weight' => 1, + 'is_reserved' => 1, + 'icon' => 'fa-slideshare', + ], + [ + 'label' => ts('Phone Call'), + 'value' => 2, + 'name' => 'Phone Call', + 'weight' => 2, + 'is_reserved' => 1, + 'icon' => 'fa-phone', + ], + [ + 'label' => ts('Email'), + 'value' => 3, + 'name' => 'Email', + 'filter' => 1, + 'weight' => 3, + 'description' => ts('Email sent.'), + 'is_reserved' => 1, + 'icon' => 'fa-envelope-o', + ], + [ + 'label' => ts('Outbound SMS'), + 'value' => 4, + 'name' => 'SMS', + 'filter' => 1, + 'weight' => 4, + 'description' => ts('Text message (SMS) sent.'), + 'is_reserved' => 1, + 'icon' => 'fa-mobile', + ], + [ + 'label' => ts('Event Registration'), + 'value' => 5, + 'name' => 'Event Registration', + 'filter' => 1, + 'weight' => 5, + 'description' => ts('Online or offline event registration.'), + 'is_reserved' => 1, + 'component_id' => 1, + ], + [ + 'label' => ts('Contribution'), + 'value' => 6, + 'name' => 'Contribution', + 'filter' => 1, + 'weight' => 6, + 'description' => ts('Online or offline contribution.'), + 'is_reserved' => 1, + 'component_id' => 2, + ], + [ + 'label' => ts('Membership Signup'), + 'value' => 7, + 'name' => 'Membership Signup', + 'filter' => 1, + 'weight' => 7, + 'description' => ts('Online or offline membership signup.'), + 'is_reserved' => 1, + 'component_id' => 3, + ], + [ + 'label' => ts('Membership Renewal'), + 'value' => 8, + 'name' => 'Membership Renewal', + 'filter' => 1, + 'weight' => 8, + 'description' => ts('Online or offline membership renewal.'), + 'is_reserved' => 1, + 'component_id' => 3, + ], + [ + 'label' => ts('Tell a Friend'), + 'value' => 9, + 'name' => 'Tell a Friend', + 'filter' => 1, + 'weight' => 9, + 'description' => ts('Send information about a contribution campaign or event to a friend.'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Pledge Acknowledgment'), + 'value' => 10, + 'name' => 'Pledge Acknowledgment', + 'filter' => 1, + 'weight' => 10, + 'description' => ts('Send Pledge Acknowledgment.'), + 'is_reserved' => 1, + 'component_id' => 6, + ], + [ + 'label' => ts('Pledge Reminder'), + 'value' => 11, + 'name' => 'Pledge Reminder', + 'filter' => 1, + 'weight' => 11, + 'description' => ts('Send Pledge Reminder.'), + 'is_reserved' => 1, + 'component_id' => 6, + ], + [ + 'label' => ts('Inbound Email'), + 'value' => 12, + 'name' => 'Inbound Email', + 'filter' => 1, + 'weight' => 12, + 'description' => ts('Inbound Email.'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Open Case'), + 'value' => 13, + 'name' => 'Open Case', + 'weight' => 13, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-folder-open-o', + 'description' => '', + ], + [ + 'label' => ts('Follow up'), + 'value' => 14, + 'name' => 'Follow up', + 'weight' => 14, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-share-square-o', + 'description' => '', + ], + [ + 'label' => ts('Change Case Type'), + 'value' => 15, + 'name' => 'Change Case Type', + 'weight' => 15, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-random', + 'description' => '', + ], + [ + 'label' => ts('Change Case Status'), + 'value' => 16, + 'name' => 'Change Case Status', + 'weight' => 16, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-pencil-square-o', + 'description' => '', + ], + [ + 'label' => ts('Change Case Subject'), + 'value' => 53, + 'name' => 'Change Case Subject', + 'weight' => 53, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-pencil-square-o', + 'description' => '', + ], + [ + 'label' => ts('Change Custom Data'), + 'value' => 33, + 'name' => 'Change Custom Data', + 'weight' => 33, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-table', + 'description' => '', + ], + [ + 'label' => ts('Membership Renewal Reminder'), + 'value' => 17, + 'name' => 'Membership Renewal Reminder', + 'filter' => 1, + 'weight' => 17, + 'description' => ts('offline membership renewal reminder.'), + 'is_reserved' => 1, + 'component_id' => 3, + ], + [ + 'label' => ts('Change Case Start Date'), + 'value' => 18, + 'name' => 'Change Case Start Date', + 'weight' => 18, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-calendar', + 'description' => '', + ], + [ + 'label' => ts('Bulk Email'), + 'value' => 19, + 'name' => 'Bulk Email', + 'filter' => 1, + 'weight' => 19, + 'description' => ts('Bulk Email Sent.'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Assign Case Role'), + 'value' => 20, + 'name' => 'Assign Case Role', + 'weight' => 20, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-user-plus', + 'description' => '', + ], + [ + 'label' => ts('Remove Case Role'), + 'value' => 21, + 'name' => 'Remove Case Role', + 'weight' => 21, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-user-times', + 'description' => '', + ], + [ + 'label' => ts('Print/Merge Document'), + 'value' => 22, + 'name' => 'Print PDF Letter', + 'weight' => 22, + 'description' => ts('Export letters and other printable documents.'), + 'is_reserved' => 1, + 'icon' => 'fa-file-pdf-o', + ], + [ + 'label' => ts('Merge Case'), + 'value' => 23, + 'name' => 'Merge Case', + 'weight' => 23, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-compress', + 'description' => '', + ], + [ + 'label' => ts('Reassigned Case'), + 'value' => 24, + 'name' => 'Reassigned Case', + 'weight' => 24, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-user-circle-o', + 'description' => '', + ], + [ + 'label' => ts('Link Cases'), + 'value' => 25, + 'name' => 'Link Cases', + 'weight' => 25, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-link', + 'description' => '', + ], + [ + 'label' => ts('Change Case Tags'), + 'value' => 26, + 'name' => 'Change Case Tags', + 'weight' => 26, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-tags', + 'description' => '', + ], + [ + 'label' => ts('Add Client To Case'), + 'value' => 27, + 'name' => 'Add Client To Case', + // FIXME: Weird weight + 'weight' => 27 - 1, + 'is_reserved' => 1, + 'component_id' => 7, + 'icon' => 'fa-users', + 'description' => '', + ], + [ + 'label' => ts('Survey'), + 'value' => 28, + 'name' => 'Survey', + // FIXME: Weird weight + 'weight' => 28 - 1, + 'is_reserved' => 1, + 'component_id' => 9, + 'description' => '', + ], + [ + 'label' => ts('Canvass'), + 'value' => 29, + 'name' => 'Canvass', + // FIXME: Weird weight + 'weight' => 29 - 1, + 'is_reserved' => 1, + 'component_id' => 9, + 'description' => '', + ], + [ + 'label' => ts('PhoneBank'), + 'value' => 30, + 'name' => 'PhoneBank', + // FIXME: Weird weight + 'weight' => 30 - 1, + 'is_reserved' => 1, + 'component_id' => 9, + 'description' => '', + ], + [ + 'label' => ts('WalkList'), + 'value' => 31, + 'name' => 'WalkList', + // FIXME: Weird weight + 'weight' => 31 - 1, + 'is_reserved' => 1, + 'component_id' => 9, + 'description' => '', + ], + [ + 'label' => ts('Petition Signature'), + 'value' => 32, + 'name' => 'Petition', + // FIXME: Weird weight + 'weight' => 32 - 1, + 'is_reserved' => 1, + 'component_id' => 9, + 'description' => '', + ], + [ + 'label' => ts('Mass SMS'), + 'value' => 34, + 'name' => 'Mass SMS', + 'filter' => 1, + 'weight' => 34, + 'description' => ts('Mass SMS'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Change Membership Status'), + 'value' => 35, + 'name' => 'Change Membership Status', + 'filter' => 1, + 'weight' => 35, + 'description' => ts('Change Membership Status.'), + 'is_reserved' => 1, + 'component_id' => 3, + ], + [ + 'label' => ts('Change Membership Type'), + 'value' => 36, + 'name' => 'Change Membership Type', + 'filter' => 1, + 'weight' => 36, + 'description' => ts('Change Membership Type.'), + 'is_reserved' => 1, + 'component_id' => 3, + ], + [ + 'label' => ts('Cancel Recurring Contribution'), + 'value' => 37, + 'name' => 'Cancel Recurring Contribution', + 'filter' => 1, + 'weight' => 37, + 'is_reserved' => 1, + 'component_id' => 2, + 'description' => '', + ], + [ + 'label' => ts('Update Recurring Contribution Billing Details'), + 'value' => 38, + 'name' => 'Update Recurring Contribution Billing Details', + 'filter' => 1, + 'weight' => 38, + 'is_reserved' => 1, + 'component_id' => 2, + 'description' => '', + ], + [ + 'label' => ts('Update Recurring Contribution'), + 'value' => 39, + 'name' => 'Update Recurring Contribution', + 'filter' => 1, + 'weight' => 39, + 'is_reserved' => 1, + 'component_id' => 2, + 'description' => '', + ], + [ + 'label' => ts('Reminder Sent'), + 'value' => 40, + 'name' => 'Reminder Sent', + 'filter' => 1, + 'weight' => 40, + 'is_reserved' => 1, + 'description' => '', + ], + [ + 'label' => ts('Export Accounting Batch'), + 'value' => 41, + 'name' => 'Export Accounting Batch', + 'filter' => 1, + 'weight' => 41, + // FIXME: Shouldn't this use ts() + 'description' => 'Export Accounting Batch', + 'is_reserved' => 1, + 'component_id' => 2, + ], + [ + 'label' => ts('Create Batch'), + 'value' => 42, + 'name' => 'Create Batch', + 'filter' => 1, + 'weight' => 42, + // FIXME: Shouldn't this use ts() + 'description' => 'Create Batch', + 'is_reserved' => 1, + 'component_id' => 2, + ], + [ + 'label' => ts('Edit Batch'), + 'value' => 43, + 'name' => 'Edit Batch', + 'filter' => 1, + 'weight' => 43, + // FIXME: Shouldn't this use ts() + 'description' => 'Edit Batch', + 'is_reserved' => 1, + 'component_id' => 2, + ], + [ + 'label' => ts('SMS delivery'), + 'value' => 44, + 'name' => 'SMS delivery', + 'filter' => 1, + 'weight' => 44, + 'description' => ts('SMS delivery'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Inbound SMS'), + 'value' => 45, + 'name' => 'Inbound SMS', + 'filter' => 1, + 'weight' => 45, + 'description' => ts('Inbound SMS'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Payment'), + 'value' => 46, + 'name' => 'Payment', + 'filter' => 1, + 'weight' => 46, + 'description' => ts('Additional payment recorded for event or membership fee.'), + 'is_reserved' => 1, + 'component_id' => 2, + ], + [ + 'label' => ts('Refund'), + 'value' => 47, + 'name' => 'Refund', + 'filter' => 1, + 'weight' => 47, + 'description' => ts('Refund recorded for event or membership fee.'), + 'is_reserved' => 1, + 'component_id' => 2, + ], + [ + 'label' => ts('Change Registration'), + 'value' => 48, + 'name' => 'Change Registration', + 'filter' => 1, + 'weight' => 48, + 'description' => ts('Changes to an existing event registration.'), + 'is_reserved' => 1, + 'component_id' => 1, + ], + [ + 'label' => ts('Downloaded Invoice'), + 'value' => 49, + 'name' => 'Downloaded Invoice', + 'filter' => 1, + 'weight' => 49, + 'description' => ts('Downloaded Invoice.'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Emailed Invoice'), + 'value' => 50, + 'name' => 'Emailed Invoice', + 'filter' => 1, + 'weight' => 50, + 'description' => ts('Emailed Invoice.'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Contact Merged'), + 'value' => 51, + 'name' => 'Contact Merged', + 'filter' => 1, + 'weight' => 51, + 'description' => ts('Contact Merged'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Contact Deleted by Merge'), + 'value' => 52, + 'name' => 'Contact Deleted by Merge', + 'filter' => 1, + 'weight' => 52, + 'description' => ts('Contact was merged into another contact'), + 'is_reserved' => 1, + ], + [ + 'label' => ts('Failed Payment'), + 'value' => 54, + 'name' => 'Failed Payment', + 'filter' => 1, + 'weight' => 54, + 'description' => ts('Failed Payment'), + 'is_reserved' => 1, + 'component_id' => 2, + ], ]);