fix facture date echeance for h2f (au compant )

This commit is contained in:
Tiavina 2025-01-21 12:57:47 +03:00
parent 1bd8fadb85
commit 56949686e0

View File

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