Fix var not defined
This commit is contained in:
parent
f6d6efa288
commit
9b4b11b4bd
@ -817,8 +817,7 @@ function pdf_bank(&$pdf, $outputlangs, $curx, $cury, $account, $onlynumber = 0,
|
||||
|
||||
$pdf->SetFont('', '', $default_font_size - $diffsizecontent);
|
||||
|
||||
if (empty($onlynumber) && !empty($account->domiciliation))
|
||||
{
|
||||
if (empty($onlynumber) && !empty($account->domiciliation)) {
|
||||
$pdf->SetXY($curx, $cury);
|
||||
$val = $outputlangs->transnoentities("Residence").': '.$outputlangs->convToOutputCharset($account->domiciliation);
|
||||
$pdf->MultiCell(100, 3, $val, 0, 'L', 0);
|
||||
@ -828,15 +827,15 @@ function pdf_bank(&$pdf, $outputlangs, $curx, $cury, $account, $onlynumber = 0,
|
||||
$cury += $tmpy;
|
||||
}
|
||||
|
||||
if (!empty($account->proprio))
|
||||
{
|
||||
if (!empty($account->proprio)) {
|
||||
$pdf->SetXY($curx, $cury);
|
||||
$val = $outputlangs->transnoentities("BankAccountOwner").': '.$outputlangs->convToOutputCharset($account->proprio);
|
||||
$pdf->MultiCell(100, 3, $val, 0, 'L', 0);
|
||||
$tmpy = $pdf->getStringHeight(100, $val);
|
||||
$cury += $tmpy;
|
||||
$cur += 1;
|
||||
} elseif (!$usedetailedbban) $cury += 1;
|
||||
} elseif (!$usedetailedbban) {
|
||||
$cury += 1;
|
||||
}
|
||||
|
||||
// Use correct name of bank id according to country
|
||||
$ibankey = FormBank::getIBANLabel($account);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user