From d03ead3bc986dc54c88e3741cfcfd6cbfe3d89e6 Mon Sep 17 00:00:00 2001 From: Narindra ezway Date: Tue, 8 Apr 2025 15:23:26 +0300 Subject: [PATCH] fix TOTAL TTC --- .../InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php index 29260d8..d824822 100644 --- a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php +++ b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php @@ -388,7 +388,7 @@ class InvoiceGroupPdfHandler extends FPDF { $this->Cell($ibanWidth, 5, 'Code SWIFT : AGRI FR PP 836', 1, 1, 'C'); //TABLE HT - $tableWidth = 40; // Largeur totale de la 2e table (20+20) + $tableWidth = 48; // Largeur totale de la 2e table (20+20) $marginRight = 3; // Marge par rapport au bord droit $pageWidth = 210; // Largeur d'une page A4 en mm (portrait) @@ -396,13 +396,13 @@ class InvoiceGroupPdfHandler extends FPDF { $startOfArrayX = $pageWidth - $tableWidth - $marginRight; $startOfArrayY = $ibanCursorY - 5; - + $this->SetFont('ComicSans', '', 10); $totalPriceArray = $this->totalPrices; foreach($totalPriceArray as $label => $price){ $this->SetXY($startOfArrayX,$startOfArrayY); - $this->Cell(20, 5, $label, 1, 1, 'C'); - $this->SetXY($startOfArrayX + 20,$startOfArrayY); - $this->Cell(20, 5, number_format($price,2,'.','').chr(128), 1, 1, 'C'); + $this->Cell(24, 5, $label, 1, 1, 'C'); + $this->SetXY($startOfArrayX + 24,$startOfArrayY); + $this->Cell(24, 5, number_format($price,2,'.','').chr(128), 1, 1, 'C'); $startOfArrayY += 5; } }