Update pdf.lib.php

If bank account is empty, not print "Bank" and "Account"
This commit is contained in:
Mikko Virtanen 2024-03-30 13:29:40 +02:00 committed by GitHub
parent 3d28163c2e
commit 0f661175be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -925,7 +925,7 @@ function pdf_bank(&$pdf, $outputlangs, $curx, $cury, $account, $onlynumber = 0,
$curx = $savcurx;
$cury += 8;
}
} else {
} elseif (!empty($account->number)){
$pdf->SetFont('', 'B', $default_font_size - $diffsizecontent);
$pdf->SetXY($curx, $cury);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("Bank").': '.$outputlangs->convToOutputCharset($account->bank), 0, 'L', 0);