From aa381ac61b424800dde358b5377145f2caa1ee71 Mon Sep 17 00:00:00 2001 From: "noah.lancien" Date: Tue, 11 Apr 2023 12:28:00 +0000 Subject: [PATCH] Re-ordered ticket status enums --- app/Enums/TicketStatus.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Enums/TicketStatus.php b/app/Enums/TicketStatus.php index 08330fa..12f478e 100644 --- a/app/Enums/TicketStatus.php +++ b/app/Enums/TicketStatus.php @@ -7,12 +7,12 @@ use Kwaadpepper\Enum\BaseEnumRoutable; /** * @method static self new() * @method static self estimateTodo() + * @method static self takenInAccount() * @method static self waiting() * @method static self waitingValidation() * @method static self recette() * @method static self production() * @method static self archived() - * @method static self takenInAccount() */ class TicketStatus extends BaseEnumRoutable { @@ -26,12 +26,12 @@ class TicketStatus extends BaseEnumRoutable return [ 'new' => 1, 'estimateTodo' => 2, - 'waiting' => 9, - 'recette' => 12, - 'production' => 13, - 'archived' => 15, - 'waitingValidation' => 17, - 'takenInAccount' => 18, + 'takenInAccount' => 3, + 'waiting' => 4, + 'waitingValidation' => 5, + 'recette' => 6, + 'production' => 7, + 'archived' => 8, ]; } @@ -45,12 +45,12 @@ class TicketStatus extends BaseEnumRoutable return [ 'new' => trans('Nouveau'), 'estimateTodo' => trans('Devis à faire'), + 'takenInAccount' => trans('Pris en compte'), 'waiting' => trans('En attente de réponse'), 'waitingValidation' => trans('En attente de validation'), 'recette' => trans('En recettage'), 'production' => trans('En production'), 'archived' => trans('Archivé'), - 'takenInAccount' => trans('Pris en compte'), ]; } @@ -64,12 +64,12 @@ class TicketStatus extends BaseEnumRoutable return [ 'new' => 'text-danger', 'estimateTodo' => 'text-info', + 'takenInAccount' => 'text-info', 'waiting' => 'text-white bg-danger', 'waitingValidation' => 'text-warning bg-danger', 'recette' => 'text-primary', 'production' => 'text-success', 'archived' => 'text-secondary', - 'takenInAccount' => 'text-info', ]; }