diff --git a/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php b/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php index 8909773..185c249 100644 --- a/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_swissqr.modules.php @@ -855,9 +855,12 @@ class pdf_swissqr extends ModelePDFFactures } // Add page for the Swiss QR-invoice - $pdf->AddPage(); - $this->_pagehead($pdf, $object, 0, $outputlangs); - $this->qrinvoice($pdf, $object, $outputlangs, $conf); + if (isset($object->iban)) + { + $pdf->AddPage(); + $this->_pagehead($pdf, $object, 0, $outputlangs); + $this->qrinvoice($pdf, $object, $outputlangs, $conf); + } $pdf->Close();