Skip to content

Commit

Permalink
fix: correction typo cerfa (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-carcel authored Jun 19, 2024
1 parent 6afdde8 commit 97d9c2c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const build = async (declaration = {}, departementSuivi, dateDeposeA2mois) => {
content: [
parts.Header(),
parts.Titre(declaration, departementSuivi, "8jours", dateDeposeA2mois),
parts.InformationsGenerales(declaration),
parts.InformationsGenerales(declaration, "8jours"),
{
headlineLevel: 1,
stack: [parts.Header()],
Expand Down
12 changes: 9 additions & 3 deletions packages/backend/src/services/pdf/parts/InformationsGenerales.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const dayjs = require("dayjs");
const Organisme = require("./Organisme");

module.exports = function buildInformationsGenerales(declaration) {
module.exports = function buildInformationsGenerales(declaration, type) {
return {
stack: [
{
Expand Down Expand Up @@ -51,7 +51,10 @@ module.exports = function buildInformationsGenerales(declaration) {
{
columns: [
{
text: "Date indicative de début du séjour :",
text:
type === "8jours"
? "Date de début du séjour :"
: "Date indicative de début du séjour :",
width: 250,
},
{
Expand All @@ -64,7 +67,10 @@ module.exports = function buildInformationsGenerales(declaration) {
{
columns: [
{
text: "Date indicative de fin du séjour :",
text:
type === "8jours"
? "Date de fin du séjour :"
: "Date indicative de fin du séjour :",
width: 250,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function buildInformationsVacanciers(info, type) {
bold: true,
color: "#F5F5FE",
fontSize: 10,
text: `${type === "8jours" ? "Informations sur les vacanciers":"Informations prévisionnelles sur les vacanciers"}`,
text: `${type === "8jours" ? "Informations sur les vacanciers" : "Informations prévisionnelles sur les vacanciers"}`,
width: "300",
},
],
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/services/pdf/parts/Titre.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ module.exports = function buildTitre(
fontSize: 12,
text:
type === "8jours"
? "FICHE COMPLEMENTAIRE A LA DECLARATION D'UN SEJOUR « VACANCES ADAPTEES ORGANISEES » destiné à des personnes handicapées"
: "DECLARATION PREALABLE D'UN SEJOUR « VACANCES ADAPTEES ORGANISEES » destiné à des personnes handicapées",
? "FICHE COMPLEMENTAIRE A LA DECLARATION D'UN SEJOUR « VACANCES ADAPTEES ORGANISEES » destiné à des personnes handicapées majeures"
: "DECLARATION PREALABLE D'UN SEJOUR « VACANCES ADAPTEES ORGANISEES » destiné à des personnes handicapées majeures",
},
{
italics: true,
Expand Down

0 comments on commit 97d9c2c

Please sign in to comment.