X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep702.php;h=2600df6ba3f02fced02f9598cc88050603b15b1d;hb=eb5b2d3ee7cc0fca5ec63dfada65ecf23b693e85;hp=bbb6ec4b59e444387fe236a45602b9efbc6d3035;hpb=ad96cd0abbfd826592b851b8e0cb6d89e450fdf4;p=fa-stable.git 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);