From 4f4344e0d8cd59bfc15453c038f038dbbe9b5c2d Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Thu, 9 Apr 2026 15:33:48 +0200 Subject: [PATCH] fix: roles DocuSeal contrat - Company pour association, Customer pour client - PDF: champs texte et signature client en role=Customer - PDF: signature association en role=Company - Controller: submitter client en role=Customer Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Controller/Admin/ContratController.php | 2 +- src/Service/Pdf/ContratMigrationSiteconseilPdf.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Controller/Admin/ContratController.php b/src/Controller/Admin/ContratController.php index da7bade..6e56894 100644 --- a/src/Controller/Admin/ContratController.php +++ b/src/Controller/Admin/ContratController.php @@ -173,7 +173,7 @@ class ContratController extends AbstractController [ 'email' => $contrat->getEmail(), 'name' => $contrat->getRaisonSociale(), - 'role' => 'First Party', + 'role' => 'Customer', 'send_email' => false, 'completed_redirect_url' => $signedRedirectUrl, 'metadata' => ['doc_type' => 'contrat', 'contrat_id' => $contrat->getId()], diff --git a/src/Service/Pdf/ContratMigrationSiteconseilPdf.php b/src/Service/Pdf/ContratMigrationSiteconseilPdf.php index 6b06710..1d7a1fe 100644 --- a/src/Service/Pdf/ContratMigrationSiteconseilPdf.php +++ b/src/Service/Pdf/ContratMigrationSiteconseilPdf.php @@ -151,23 +151,23 @@ class ContratMigrationSiteconseilPdf extends Fpdi $this->SetFont('Arial', '', 9); $this->Cell($labelW, 5, $this->enc('Raison sociale :'), 0, 0, 'L'); $this->SetFont('Arial', 'B', 9); - $this->Cell(0, 5, '{{RaisonSociale;type=text;role=First Party}}', 0, 1, 'L'); + $this->Cell(0, 5, '{{RaisonSociale;type=text;role=Customer}}', 0, 1, 'L'); $this->SetFont('Arial', '', 9); $this->Cell($labelW, 5, 'SIRET :', 0, 0, 'L'); - $this->Cell(0, 5, '{{SIRET;type=text;role=First Party}}', 0, 1, 'L'); + $this->Cell(0, 5, '{{SIRET;type=text;role=Customer}}', 0, 1, 'L'); $this->Cell($labelW, 5, $this->enc('Adresse :'), 0, 0, 'L'); - $this->Cell(0, 5, '{{Adresse;type=text;role=First Party}}', 0, 1, 'L'); + $this->Cell(0, 5, '{{Adresse;type=text;role=Customer}}', 0, 1, 'L'); $this->Cell($labelW, 5, 'Email :', 0, 0, 'L'); - $this->Cell(0, 5, '{{Email;type=text;role=First Party}}', 0, 1, 'L'); + $this->Cell(0, 5, '{{Email;type=text;role=Customer}}', 0, 1, 'L'); $this->Cell($labelW, 5, $this->enc('Telephone :'), 0, 0, 'L'); - $this->Cell(0, 5, '{{Telephone;type=text;role=First Party}}', 0, 1, 'L'); + $this->Cell(0, 5, '{{Telephone;type=text;role=Customer}}', 0, 1, 'L'); $this->Cell($labelW, 5, $this->enc('Representant :'), 0, 0, 'L'); - $this->Cell(0, 5, '{{Representant;type=text;role=First Party}}', 0, 1, 'L'); + $this->Cell(0, 5, '{{Representant;type=text;role=Customer}}', 0, 1, 'L'); $this->Ln(2); $this->Cell(0, 0.5, '', 'T', 1, 'L'); @@ -392,7 +392,7 @@ class ContratMigrationSiteconseilPdf extends Fpdi $this->SetFont('Arial', '', 10); $this->Cell($colWidth, 20, '{{Sign;type=signature;role=Company}}', 0, 0, 'L'); $this->Cell(10, 20, '', 0, 0); - $this->Cell($colWidth, 20, '{{SignClient;type=signature;role=First Party}}', 0, 1, 'L'); + $this->Cell($colWidth, 20, '{{SignClient;type=signature;role=Customer}}', 0, 1, 'L'); $this->Ln(5); $this->SetFont('Arial', 'I', 8);