From 86c278449bf190e844e272d83c72f537b4f812f6 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 26 Nov 2008 23:18:51 +0000 Subject: [PATCH] [0000092] Stock Sheet Report. Bad Page break. --- CHANGELOG.txt | 4 ++++ reporting/includes/pdf_report.inc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a2259263..62eb6944 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +27_Nov-2008 Joe Hunt +# [0000092] Stock Sheet Report. Bad Page break. +$ /reporting/includes/pdf_report.inc + 26-Nov-2008 Joe Hunt # [0000091] Tax for 2 decimal places doesn't compute properly $ /taxes/tax_calc.inc diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index f09ab57f..f69543c5 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -349,7 +349,7 @@ class FrontReport extends Cpdf function NewLine($l=1, $np=0) { $this->row -= ($l * $this->lineHeight); - if ($np > 0 && $this->row < $this->bottomMargin + ($np * $this->lineHeight)) + if ($this->row < $this->bottomMargin + ($np * $this->lineHeight)) $this->Header(); } -- 2.30.2