From 3f2d8672d04b47708c47718413b4cc94d821387f Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Thu, 9 Apr 2026 15:42:48 +0200 Subject: [PATCH] feat: bloc informations legales association dans PDF contrat (style ComptaPdf) Bloc entre le header et le preambule avec : - Association, RNA, siege social, SIRET, Code APE - President Shoko Cosplay - Serreau Jovann - Email, telephone, site web - Reference du document Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Pdf/ContratMigrationSiteconseilPdf.php | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/Service/Pdf/ContratMigrationSiteconseilPdf.php b/src/Service/Pdf/ContratMigrationSiteconseilPdf.php index f4811ae..220711c 100644 --- a/src/Service/Pdf/ContratMigrationSiteconseilPdf.php +++ b/src/Service/Pdf/ContratMigrationSiteconseilPdf.php @@ -27,6 +27,7 @@ class ContratMigrationSiteconseilPdf extends Fpdi $this->AddPage(); $this->writeHeader(); + $this->writeAssociationInfo(); $this->writePreambule(); $this->writeServicesTable(); $this->writeArticles(); @@ -178,6 +179,57 @@ class ContratMigrationSiteconseilPdf extends Fpdi $this->Ln(5); } + /** @codeCoverageIgnore */ + private function writeAssociationInfo(): void + { + $this->SetDrawColor(200, 200, 200); + $this->Cell(0, 0.5, '', 'T', 1, 'L'); + $this->Ln(2); + + $this->SetFont('Arial', 'B', 10); + $this->Cell(0, 5, $this->enc('INFORMATIONS LEGALES'), 0, 1, 'C'); + $this->Ln(1); + + $labelW = 45; + + $this->SetFont('Arial', '', 9); + $this->Cell($labelW, 5, $this->enc('Association :'), 0, 0, 'L'); + $this->SetFont('Arial', 'B', 9); + $this->Cell(0, 5, $this->enc('E-Cosplay Association loi 1901 - RNA N W022006988'), 0, 1, 'L'); + + $this->SetFont('Arial', '', 9); + $this->Cell($labelW, 5, $this->enc('Siege social :'), 0, 0, 'L'); + $this->Cell(0, 5, $this->enc('42 rue de Saint-Quentin 02800 Beautor'), 0, 1, 'L'); + + $this->Cell($labelW, 5, 'SIRET :', 0, 0, 'L'); + $this->Cell(0, 5, '943 121 517 00011', 0, 1, 'L'); + + $this->Cell($labelW, 5, 'Code APE :', 0, 0, 'L'); + $this->Cell(0, 5, '9329Z', 0, 1, 'L'); + + $this->Cell($labelW, 5, $this->enc('President :'), 0, 0, 'L'); + $this->SetFont('Arial', 'B', 9); + $this->Cell(0, 5, $this->enc('Shoko Cosplay - Serreau Jovann'), 0, 1, 'L'); + + $this->SetFont('Arial', '', 9); + $this->Cell($labelW, 5, 'Email :', 0, 0, 'L'); + $this->Cell(0, 5, 'client@e-cosplay.fr', 0, 1, 'L'); + + $this->Cell($labelW, 5, $this->enc('Telephone :'), 0, 0, 'L'); + $this->Cell(0, 5, '07 66 95 70 06', 0, 1, 'L'); + + $this->Cell($labelW, 5, 'Site web :', 0, 0, 'L'); + $this->Cell(0, 5, 'www.e-cosplay.fr', 0, 1, 'L'); + + $this->Cell($labelW, 5, 'Document :', 0, 0, 'L'); + $this->SetFont('Arial', 'B', 9); + $this->Cell(0, 5, $this->enc('Contrat de Service - '.$this->contrat->getReference()), 0, 1, 'L'); + + $this->Ln(2); + $this->Cell(0, 0.5, '', 'T', 1, 'L'); + $this->Ln(3); + } + /** @codeCoverageIgnore */ private function writePreambule(): void {