Add check if IBAN is set before adding the QR part
This commit is contained in:
parent
adeb447227
commit
8918230c1a
|
|
@ -855,9 +855,12 @@ class pdf_swissqr extends ModelePDFFactures
|
|||
}
|
||||
|
||||
// Add page for the Swiss QR-invoice
|
||||
if (isset($object->iban))
|
||||
{
|
||||
$pdf->AddPage();
|
||||
$this->_pagehead($pdf, $object, 0, $outputlangs);
|
||||
$this->qrinvoice($pdf, $object, $outputlangs, $conf);
|
||||
}
|
||||
|
||||
$pdf->Close();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue