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