mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
feat: Ajout d'un nouvel état dans l'automatique lorsqu'un mandat SEPA
doit être envoyé aux parent
This commit is contained in:
@ -11,6 +11,7 @@ const StatusLabel = ({ status, onChange, showDropdown = true, parent }) => {
|
||||
{ value: 2, label: 'Nouveau' },
|
||||
{ value: 3, label: 'En validation' },
|
||||
{ value: 7, label: 'SEPA reçu' },
|
||||
{ value: 8, label: 'En validation' },
|
||||
]
|
||||
: [
|
||||
{ value: 1, label: 'A envoyer' },
|
||||
@ -20,6 +21,7 @@ const StatusLabel = ({ status, onChange, showDropdown = true, parent }) => {
|
||||
{ value: 5, label: 'Validé' },
|
||||
{ value: 6, label: 'Archivé' },
|
||||
{ value: 7, label: 'En attente SEPA' },
|
||||
{ value: 8, label: 'SEPA à envoyer' },
|
||||
];
|
||||
|
||||
const currentStatus = statusOptions.find((option) => option.value === status);
|
||||
@ -29,7 +31,7 @@ const StatusLabel = ({ status, onChange, showDropdown = true, parent }) => {
|
||||
if (parent) {
|
||||
return (
|
||||
(status === 2 && 'bg-orange-50 text-orange-600') ||
|
||||
(status === 3 && 'bg-purple-50 text-purple-600') ||
|
||||
((status === 3 || status === 8) && 'bg-purple-50 text-purple-600') ||
|
||||
(status === 7 && 'bg-yellow-50 text-yellow-600')
|
||||
);
|
||||
}
|
||||
@ -40,7 +42,8 @@ const StatusLabel = ({ status, onChange, showDropdown = true, parent }) => {
|
||||
(status === 4 && 'bg-red-50 text-red-600') ||
|
||||
(status === 5 && 'bg-green-50 text-green-600') ||
|
||||
(status === 6 && 'bg-red-50 text-red-600') ||
|
||||
(status === 7 && 'bg-yellow-50 text-yellow-600')
|
||||
(status === 7 && 'bg-yellow-50 text-yellow-600') ||
|
||||
(status === 8 && 'bg-cyan-50 text-cyan-600')
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user