From 7010aa525f32137e6d0225c426d25fb59057ffa0 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 15 Mar 2009 10:00:05 +0000 Subject: [PATCH] Minor bug in Report List of Journal Entries --- CHANGELOG.txt | 4 ++++ reporting/rep702.php | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e4959d29..0102db57 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +15-Mar-2009 Joe Hunt +# Minor bug in Report List of Journal Entries +$ /reporting/rep702.php + 14-Mar-2009 Joe Hunt ! Changed so exchange variances is stamped on invoice GL instead of payment GL if invoice date is later than payment date diff --git a/reporting/rep702.php b/reporting/rep702.php index bbb6ec4b..2600df6b 100644 --- a/reporting/rep702.php +++ b/reporting/rep702.php @@ -69,10 +69,10 @@ function print_list_of_journal_entries() $trans = get_gl_transactions($from, $to, -1, null, 0, 0, $systype); - $typeno = 0; + $typeno = $type = 0; while ($myrow=db_fetch($trans)) { - if ($typeno != $myrow['type_no']) + if ($type != $myrow['type'] || $typeno != $myrow['type_no']) { if ($typeno != 0) { @@ -80,6 +80,7 @@ function print_list_of_journal_entries() $rep->NewLine(); } $typeno = $myrow['type_no']; + $type = $myrow['type']; $TransName = systypes::name($myrow['type']); $rep->TextCol(0, 2, $TransName . " # " . $myrow['type_no']); $rep->DateCol(2, 3, $myrow['tran_date'], true); -- 2.30.2