diff options
Diffstat (limited to 'classes/offer.class.php')
-rw-r--r-- | classes/offer.class.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/offer.class.php b/classes/offer.class.php index d8e2692..ac4549f 100644 --- a/classes/offer.class.php +++ b/classes/offer.class.php @@ -535,6 +535,7 @@ class offer { $pdf->Cell($width[3],6,correspondence::valuta().number_format($row[3],2),'',0,'R'); $pdf->Ln(); $pdf->SetY($newy); + $pdf->addPageIfOnEnd(); $subtotal += $row[1]; if (!isset($btw[$row[2]])) $btw[$row[2]] = 0; $btw[$row[2]] += $row[3] - $row[1]; @@ -576,6 +577,7 @@ class offer { // Footer $pdf->Ln(); + $pdf->addPageIfOnEnd(); if ($pdf->GetY() < 230) { $pdf->SetY(230); } |