feat: Gestion de la validation du dossier d'inscription

This commit is contained in:
N3WT DE COMPET
2025-04-27 16:34:41 +02:00
parent ada2a44c3e
commit b23264c0d4
8 changed files with 236 additions and 220 deletions

View File

@ -8,7 +8,7 @@ import FileUpload from '@/components/FileUpload';
import { FE_PARENTS_EDIT_INSCRIPTION_URL } from '@/utils/Url';
import {
fetchChildren,
sendSEPARegisterForm,
editRegisterFormWithBinaryFile,
} from '@/app/actions/subscriptionAction';
import logger from '@/utils/logger';
import { BASE_URL } from '@/utils/Url';
@ -68,7 +68,7 @@ export default function ParentHomePage() {
formData.append('sepa_file', uploadedFile); // Ajoute le fichier SEPA
formData.append('status', 3); // Statut à envoyer
sendSEPARegisterForm(uploadingStudentId, formData, csrfToken)
editRegisterFormWithBinaryFile(uploadingStudentId, formData, csrfToken)
.then((response) => {
logger.debug('RF mis à jour avec succès:', response);
setReloadFetch(true);