Skip to content

Commit

Permalink
🎨 Review Violette
Browse files Browse the repository at this point in the history
  • Loading branch information
benjlevesque committed Feb 24, 2025
1 parent ba0687c commit b956bd4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { IdentifiantParameter } from '@/utils/identifiantParameter';
import { EnregistrerAttestationGarantiesFinancièresPage } from '@/components/pages/garanties-financières/actuelles/enregistrerAttestation/EnregistrerAttestationGarantiesFinancières.page';
import { projetSoumisAuxGarantiesFinancières } from '@/utils/garanties-financières/vérifierAppelOffreSoumisAuxGarantiesFinancières';
import { ProjetNonSoumisAuxGarantiesFinancièresPage } from '@/components/pages/garanties-financières/ProjetNonSoumisAuxGarantiesFinancières.page';
import { récupérerLauréat } from '@/app/_helpers';

export const metadata: Metadata = {
title: `Enregistrer l'attestation de constitution des garanties financières actuelles - Potentiel`,
Expand All @@ -20,6 +21,8 @@ export default async function Page({ params: { identifiant } }: IdentifiantParam
const { appelOffre, famille, période } =
IdentifiantProjet.convertirEnValueType(identifiantProjet);

await récupérerLauréat(identifiantProjet);

const soumisAuxGarantiesFinancières = await projetSoumisAuxGarantiesFinancières({
appelOffre,
famille,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { projetSoumisAuxGarantiesFinancières } from '@/utils/garanties-financi
import { ProjetNonSoumisAuxGarantiesFinancièresPage } from '@/components/pages/garanties-financières/ProjetNonSoumisAuxGarantiesFinancières.page';
import { EnregistrerGarantiesFinancièresPage } from '@/components/pages/garanties-financières/actuelles/enregistrer/EnregistrerGarantiesFinancières.page';
import { typesGarantiesFinancièresSansInconnuPourFormulaire } from '@/utils/garanties-financières/typesGarantiesFinancièresPourFormulaire';
import { récupérerLauréat } from '@/app/_helpers';

export const metadata: Metadata = {
title: `Enregistrer des garanties financières actuelles - Potentiel`,
Expand All @@ -21,6 +22,8 @@ export default async function Page({ params: { identifiant } }: IdentifiantParam
const { appelOffre, famille, période } =
IdentifiantProjet.convertirEnValueType(identifiantProjet);

await récupérerLauréat(identifiantProjet);

const soumisAuxGarantiesFinancières = await projetSoumisAuxGarantiesFinancières({
appelOffre,
famille,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { projetSoumisAuxGarantiesFinancières } from '@/utils/garanties-financi
import { ProjetNonSoumisAuxGarantiesFinancièresPage } from '@/components/pages/garanties-financières/ProjetNonSoumisAuxGarantiesFinancières.page';
import { ProjetADéjàUnDépôtEnCoursPage } from '@/components/pages/garanties-financières/dépôt/soumettre/ProjetADéjàUnDépôtEnCours.page';
import { typesGarantiesFinancièresSansInconnuPourFormulaire } from '@/utils/garanties-financières/typesGarantiesFinancièresPourFormulaire';
import { récupérerLauréat } from '@/app/_helpers';

export const metadata: Metadata = {
title: 'Soumettre des garanties financières - Potentiel',
Expand All @@ -25,6 +26,8 @@ export default async function Page({ params: { identifiant } }: IdentifiantParam
const { appelOffre, famille, période } =
IdentifiantProjet.convertirEnValueType(identifiantProjet);

await récupérerLauréat(identifiantProjet);

const soumisAuxGarantiesFinancières = await projetSoumisAuxGarantiesFinancières({
appelOffre,
famille,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
} from '@/components/pages/garanties-financières/détails/DétailsGarantiesFinancières.page';
import { projetSoumisAuxGarantiesFinancières } from '@/utils/garanties-financières/vérifierAppelOffreSoumisAuxGarantiesFinancières';
import { ProjetNonSoumisAuxGarantiesFinancièresPage } from '@/components/pages/garanties-financières/ProjetNonSoumisAuxGarantiesFinancières.page';
import { récupérerLauréat } from '@/app/_helpers';

import { getHistoriqueMainlevéeRejetéesActions } from './helpers/getHistoriqueMainlevéeRejetéesActions';
import { getMainlevéeActions } from './helpers/getMainlevéeActions';
Expand All @@ -38,6 +39,8 @@ export default async function Page({ params: { identifiant } }: IdentifiantParam
decodeParameter(identifiant),
);

await récupérerLauréat(identifiantProjet.formatter());

const appelOffreDetails = await mediator.send<AppelOffre.ConsulterAppelOffreQuery>({
type: 'AppelOffre.Query.ConsulterAppelOffre',
data: { identifiantAppelOffre: identifiantProjet.appelOffre },
Expand Down

0 comments on commit b956bd4

Please sign in to comment.