Updated Enums
This commit is contained in:
parent
13183e6aad
commit
a5d20daab3
1 changed files with 6 additions and 26 deletions
|
|
@ -7,17 +7,12 @@ use Kwaadpepper\Enum\BaseEnumRoutable;
|
|||
/**
|
||||
* @method static self new()
|
||||
* @method static self estimateTodo()
|
||||
* @method static self estimateValidated()
|
||||
* @method static self estimateDone()
|
||||
* @method static self toPlan()
|
||||
* @method static self planned()
|
||||
* @method static self inprogress()
|
||||
* @method static self waiting()
|
||||
* @method static self waitingValidation()
|
||||
* @method static self processed()
|
||||
* @method static self recette()
|
||||
* @method static self production()
|
||||
* @method static self archived()
|
||||
* @method static self takenInAccount()
|
||||
*/
|
||||
class TicketStatus extends BaseEnumRoutable
|
||||
{
|
||||
|
|
@ -31,17 +26,12 @@ class TicketStatus extends BaseEnumRoutable
|
|||
return [
|
||||
'new' => 1,
|
||||
'estimateTodo' => 2,
|
||||
'estimateValidated' => 3,
|
||||
'toPlan' => 4,
|
||||
'planned' => 5,
|
||||
'inprogress' => 7,
|
||||
'waiting' => 9,
|
||||
'processed' => 10,
|
||||
'recette' => 12,
|
||||
'production' => 13,
|
||||
'archived' => 15,
|
||||
'estimateDone' => 16,
|
||||
'waitingValidation' => 17,
|
||||
'takenInAccount' => 18,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -55,17 +45,12 @@ class TicketStatus extends BaseEnumRoutable
|
|||
return [
|
||||
'new' => trans('Nouveau'),
|
||||
'estimateTodo' => trans('Devis à faire'),
|
||||
'estimateValidated' => trans('Devis validé'),
|
||||
'estimateDone' => trans('Devis réalisé'),
|
||||
'toPlan' => trans('À planifier'),
|
||||
'planned' => trans('Planifié'),
|
||||
'inprogress' => trans('En cours'),
|
||||
'waiting' => trans('En attente'),
|
||||
'waitingValidation' => trans('En attente validation'),
|
||||
'processed' => trans('Traité'),
|
||||
'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'),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -79,17 +64,12 @@ class TicketStatus extends BaseEnumRoutable
|
|||
return [
|
||||
'new' => 'text-danger',
|
||||
'estimateTodo' => 'text-info',
|
||||
'estimateValidated' => 'text-info',
|
||||
'estimateDone' => 'text-info',
|
||||
'toPlan' => 'text-info',
|
||||
'planned' => 'text-info',
|
||||
'inprogress' => 'text-dark',
|
||||
'waiting' => 'text-white bg-danger',
|
||||
'waitingValidation' => 'text-warning bg-danger',
|
||||
'processed' => trans('Traité'),
|
||||
'recette' => 'text-primary',
|
||||
'production' => 'text-success',
|
||||
'archived' => 'text-secondary',
|
||||
'takenInAccount' => 'text-info',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue