Add check if IBAN is set before adding the QR part

This commit is contained in:
Benoit Vianin 2023-03-12 10:16:18 +01:00
parent adeb447227
commit 8918230c1a
1 changed files with 6 additions and 3 deletions

View File

@ -855,9 +855,12 @@ class pdf_swissqr extends ModelePDFFactures
} }
// Add page for the Swiss QR-invoice // Add page for the Swiss QR-invoice
if (isset($object->iban))
{
$pdf->AddPage(); $pdf->AddPage();
$this->_pagehead($pdf, $object, 0, $outputlangs); $this->_pagehead($pdf, $object, 0, $outputlangs);
$this->qrinvoice($pdf, $object, $outputlangs, $conf); $this->qrinvoice($pdf, $object, $outputlangs, $conf);
}
$pdf->Close(); $pdf->Close();