From 56949686e074967869b36e5cecb74387cb26eef1 Mon Sep 17 00:00:00 2001 From: Tiavina Date: Tue, 21 Jan 2025 12:57:47 +0300 Subject: [PATCH] fix facture date echeance for h2f (au compant ) --- gestion/lib/Service/InvoicePdfHandler.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gestion/lib/Service/InvoicePdfHandler.php b/gestion/lib/Service/InvoicePdfHandler.php index 9f33c9d..6018f5a 100644 --- a/gestion/lib/Service/InvoicePdfHandler.php +++ b/gestion/lib/Service/InvoicePdfHandler.php @@ -111,10 +111,8 @@ class InvoicePdfHandler extends FPDF { $factureDatePaiement = $this->factureData['date_paiement']; $factureDatePaiement = DateTime::createFromFormat('Y-m-d',$factureDatePaiement); - $factureDateEcheance = $factureDatePaiement; $factureDatePaiement = $factureDatePaiement->format('d-m-Y'); - $factureDateEcheance->modify('last day of next month'); - $factureDateEcheance = $factureDateEcheance->format('d-m-Y'); + $factureDateEcheance = $factureDatePaiement; $this->SetFont('Arial', 'B', 11); $this->Cell(30, 7, 'DATE', 1, 0, 'C'); $this->Cell(80, 7, 'LIEU', 1, 0, 'C');