diff options
author | Camil Staps | 2015-02-15 12:11:23 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-15 12:11:23 +0100 |
commit | 08b99fa1cd4818afbe560b160f17ae2bb726cbaf (patch) | |
tree | 7b0147f11691111b0b6ad283d174dd23653436ce /classes/offer.class.php | |
parent | Added sorting indicators (diff) |
Fix multipage invoices
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); } |