2
0
forked from Wavyzz/dolibarr

Update pdf_blochet.class.php

This commit is contained in:
Laurent Destailleur
2020-06-02 12:09:11 +02:00
committed by GitHub
parent 7189e060e0
commit c6a53d9b3d

View File

@@ -345,7 +345,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
// Dynamic max line heigh calculation
$dynamic_line_height = array();
$dynamic_line_height[] = $pdf->getStringHeight(60, $outputlangs->convToOutputCharset($this->lines[$j]->bank_chq));
$dynamic_line_height[] = $pdf->getStringHeight(80, $outputlangs->convToOutputCharset($this->lines[$j]->bank_chq));
$dynamic_line_height[] = $pdf->getStringHeight(80, $outputlangs->convToOutputCharset($this->lines[$j]->emetteur_chq));
$max_line_height = max($dynamic_line_height);
// Calculate number of line used function of estimated line size
if ($max_line_height > $this->line_height) $nb_lines = floor($max_line_height / $this->line_height) + 1;