diff --git a/src/Controller/Admin/ClientsController.php b/src/Controller/Admin/ClientsController.php index 301c046..d6add04 100644 --- a/src/Controller/Admin/ClientsController.php +++ b/src/Controller/Admin/ClientsController.php @@ -368,6 +368,7 @@ class ClientsController extends AbstractController $facturesList = $em->getRepository(\App\Entity\Facture::class)->findBy(['customer' => $customer], ['createdAt' => 'DESC']); $echeancierList = $em->getRepository(\App\Entity\Echeancier::class)->findBy(['customer' => $customer], ['createdAt' => 'DESC']); $eflexList = $em->getRepository(\App\Entity\EFlex::class)->findBy(['customer' => $customer], ['createdAt' => 'DESC']); + $contratsList = $em->getRepository(\App\Entity\Contrat::class)->findBy(['customer' => $customer], ['createdAt' => 'DESC']); $trustStatus = $this->computeTrustStatus($advertsList, $echeancierList, $customer); @@ -382,6 +383,7 @@ class ClientsController extends AbstractController 'facturesList' => $facturesList, 'echeancierList' => $echeancierList, 'eflexList' => $eflexList, + 'contratsList' => $contratsList, 'tab' => $tab, 'trustStatus' => $trustStatus, ]); diff --git a/src/Entity/Contrat.php b/src/Entity/Contrat.php index cf0ecc7..9d34510 100644 --- a/src/Entity/Contrat.php +++ b/src/Entity/Contrat.php @@ -18,7 +18,7 @@ class Contrat public const TYPE_MIGRATION_SITECONSEIL = 'migration_siteconseil'; public const TYPE_LABELS = [ - self::TYPE_MIGRATION_SITECONSEIL => 'Contrat Migration SARL SITECONSEIL', + self::TYPE_MIGRATION_SITECONSEIL => 'Contrat de Service - Migration SARL SITECONSEIL', ]; #[ORM\Id] diff --git a/src/Service/Pdf/ContratMigrationSiteconseilPdf.php b/src/Service/Pdf/ContratMigrationSiteconseilPdf.php index ebac00c..1ab7f25 100644 --- a/src/Service/Pdf/ContratMigrationSiteconseilPdf.php +++ b/src/Service/Pdf/ContratMigrationSiteconseilPdf.php @@ -13,7 +13,7 @@ class ContratMigrationSiteconseilPdf extends Fpdi private readonly Contrat $contrat, ) { parent::__construct(); - $this->SetTitle($this->enc('Contrat Migration '.$this->contrat->getReference().' - '.$this->contrat->getRaisonSociale())); + $this->SetTitle($this->enc('Contrat de Service '.$this->contrat->getReference().' - '.$this->contrat->getRaisonSociale())); $this->SetAuthor($this->enc('Association E-Cosplay')); } @@ -59,12 +59,12 @@ class ContratMigrationSiteconseilPdf extends Fpdi $this->SetFont('Arial', 'B', 14); $this->SetXY(60, 10); - $this->Cell(0, 7, $this->enc('CONTRAT DE MIGRATION'), 0, 1, 'L'); + $this->Cell(0, 7, $this->enc('CONTRAT DE SERVICE'), 0, 1, 'L'); $this->SetFont('Arial', 'B', 10); $this->SetXY(60, 17); $this->SetTextColor(253, 140, 4); - $this->Cell(0, 5, $this->enc('Transfert de services SARL SITECONSEIL'), 0, 1, 'L'); + $this->Cell(0, 5, $this->enc('Migration SARL SITECONSEIL'), 0, 1, 'L'); $this->SetTextColor(0, 0, 0); $this->SetFont('Arial', '', 9); diff --git a/templates/admin/clients/show.html.twig b/templates/admin/clients/show.html.twig index 2d30d9f..546de9a 100644 --- a/templates/admin/clients/show.html.twig +++ b/templates/admin/clients/show.html.twig @@ -1207,6 +1207,53 @@ + {# Tab: Contrats #} + {% elseif tab == 'contrats' %} +
| Reference | +Type | +Statut | +Date | +Actions | +
|---|---|---|---|---|
| {{ c.reference }} | +{{ c.typeLabel }} | ++ {% if c.state == 'signed' %} + Signe + {% elseif c.state == 'send' %} + Envoye + {% elseif c.state == 'cancelled' %} + Annule + {% else %} + Brouillon + {% endif %} + | +{{ c.createdAt|date('d/m/Y') }}{% if c.signedAt %} (signe {{ c.signedAt|date('d/m/Y') }}){% endif %} | ++ Voir + | +