From 181c5d2e792a27bdaaaf970d0b45fc957bc8de32 Mon Sep 17 00:00:00 2001 From: ezway Date: Thu, 4 Sep 2025 23:12:33 +0200 Subject: [PATCH] HOTFIX pdf facture tva simple --- gestion/lib/Service/InvoicePdfHandler.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gestion/lib/Service/InvoicePdfHandler.php b/gestion/lib/Service/InvoicePdfHandler.php index 3da1b4f..e9a1822 100644 --- a/gestion/lib/Service/InvoicePdfHandler.php +++ b/gestion/lib/Service/InvoicePdfHandler.php @@ -51,10 +51,10 @@ class InvoicePdfHandler extends FPDF public $interLigneHeader = 5; public $hasTva = true; - public function Header() + function Header() { if ($this->logo != "nothing") { - $this->Image($this->logoPath . "logo.png", 2, 10, 75, 25); + $this->Image($this->logoPath . "logo.png", 4, 2, 50, 35); //$this->AddWatermark(); } else { $this->Cell(55, 30, ''); @@ -129,7 +129,7 @@ class InvoicePdfHandler extends FPDF $this->factureData = $factureData; $this->logo = $logo; // Déterminer si la TVA est applicable - $this->hasTva = isset($factureData['is_tva']) ? $factureData['is_tva'] : true; + $this->hasTva = isset($factureData['tva']) ? $factureData['tva'] : true; } public function MutlipleInvoicePdfFactory(array $multipleInvoiceData, $logo = null) @@ -378,13 +378,6 @@ class InvoicePdfHandler extends FPDF } - - - - - - - $this->SetXY(5, $yValue); $this->Cell(5, 6, $dateValue, 0, 0);