From 33b6eafa5f4e858dfc2ac4b4f7c16eb903433a1a Mon Sep 17 00:00:00 2001 From: Tiavina Date: Wed, 29 Jan 2025 13:18:27 +0300 Subject: [PATCH] add product brand to pacemaker attestation --- gestion/lib/Db/Bdd.php | 1 + .../PdfHandler/PacemakerCertificatePdfHandler.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gestion/lib/Db/Bdd.php b/gestion/lib/Db/Bdd.php index 3c45800..fb027fc 100644 --- a/gestion/lib/Db/Bdd.php +++ b/gestion/lib/Db/Bdd.php @@ -3194,6 +3194,7 @@ class Bdd { defunt.nom as defunt_nom, defunt.sexe as defunt_sexe, defunt.ref_pacemaker as defunt_reference_pacemaker, + defunt.product_brand as defunt_product_brand, client.nom as client_nom, client.prenom as client_prenom, client.entreprise as client_entreprise, diff --git a/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php b/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php index 7f983a7..c71afd0 100644 --- a/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php +++ b/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php @@ -92,10 +92,14 @@ class PacemakerCertificatePdfHandler extends FPDF { $this->Cell(0,12, FileExportHelpers::FormatTextForExport("Qui reposait à l'adresse suivante") . ' : ',0,1); $this->SetFont('ComicSans', 'B', 14); $this->MultiCell(0,6, FileExportHelpers::FormatTextForExport($this->devisOfDefunt['location_of_devis'])); + $this->Ln(6); $this->SetFont('ComicSans', '', 14); - $this->Cell(0,12, + $this->Cell(0,6, FileExportHelpers::FormatTextForExport("Numéro de série : "). FileExportHelpers::FormatTextForExport($this->devisOfDefunt['defunt_reference_pacemaker']),0,1); + $this->Cell(0,6, + FileExportHelpers::FormatTextForExport("Marque du produit : "). + FileExportHelpers::FormatTextForExport($this->devisOfDefunt['defunt_product_brand']),0,1); $this->Cell(0,12, FileExportHelpers::FormatTextForExport("La présente attestion est établie pour faire valoir ce que de droit."),0,5); $this->Ln(5); $this->Cell(0,12,FileExportHelpers::FormatTextForExport('Fait à '). FileExportHelpers::FormatTextForExport($this->devisOfDefunt['configuration']->adresse));