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);