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) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-09 15:42:48 +02:00
parent f703856e8c
commit 3f2d8672d0

View File

@@ -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
{