feat(ticket): exclude cancelled status from common ticket filter fields
This commit is contained in:
parent
04e54fefad
commit
1269ebcda0
|
|
@ -124,7 +124,10 @@ class TicketFilterFormService
|
|||
'required' => false,
|
||||
'default' => null,
|
||||
'placeholder' => 'Estado',
|
||||
'options' => Ticket::statusOptions(),
|
||||
'options' => array_values(array_filter(
|
||||
Ticket::statusOptions(),
|
||||
fn (array $option): bool => $option['value'] !== Ticket::STATUS_CANCELLED,
|
||||
)),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ class AdminAppTicketFilterFormControllerTest extends TestCase
|
|||
['value' => 'used', 'label' => 'Usado'],
|
||||
['value' => 'expired', 'label' => 'Vencido'],
|
||||
['value' => 'disabled', 'label' => 'Inhabilitado'],
|
||||
['value' => 'cancelled', 'label' => 'Cancelado'],
|
||||
['value' => 'refunded', 'label' => 'Reembolsado'],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue