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
|
// Add page for the Swiss QR-invoice
|
||||||
$pdf->AddPage();
|
if (isset($object->iban))
|
||||||
$this->_pagehead($pdf, $object, 0, $outputlangs);
|
{
|
||||||
$this->qrinvoice($pdf, $object, $outputlangs, $conf);
|
$pdf->AddPage();
|
||||||
|
$this->_pagehead($pdf, $object, 0, $outputlangs);
|
||||||
|
$this->qrinvoice($pdf, $object, $outputlangs, $conf);
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->Close();
|
$pdf->Close();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue