Minor bug in Report List of Journal Entries
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 15 Mar 2009 10:00:05 +0000 (10:00 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 15 Mar 2009 10:00:05 +0000 (10:00 +0000)
CHANGELOG.txt
reporting/rep702.php

index e4959d2998ec54bd2ab6f187fe7b2210c1328cc5..0102db5729df8feb8fafbdac3a6325263c0f0757 100644 (file)
@@ -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
index bbb6ec4b59e444387fe236a45602b9efbc6d3035..2600df6ba3f02fced02f9598cc88050603b15b1d 100644 (file)
@@ -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);