Optimizing some reports.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 17 May 2020 08:49:21 +0000 (10:49 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 17 May 2020 08:49:21 +0000 (10:49 +0200)
reporting/rep115.php
reporting/rep704.php

index 01085565cb7c55d0054755ed2c351c56f09f6e05..ee03bf8a8fa06dbea9ed905ae3392724ba8c369d 100644 (file)
@@ -232,7 +232,7 @@ function print_customer_balances()
             $grandtotal[$i] += $init[$i];
         }
 
-        if (db_num_rows($res) == 0 && !no_zeros) 
+        if (db_num_rows($res) == 0 && !$no_zeros) 
         {
                    $rep->TextCol(0, 2, $myrow['name']);
             $rep->AmountCol(3, 4, $init[3], $dec);
index 23a52fca4b9b5006d0f73518e538d21e54f7d78f..f62b2d192bc98d412ce4b2816dda1ba0df19a707 100644 (file)
@@ -81,7 +81,7 @@ function print_GL_transactions()
        }
        elseif ($dim == 1)
        {
-               $cols = array(0, 65, 105, 125, 175, 230, 230, 345, 405, 465, 525);
+               $cols = array(0, 65, 105, 125, 175, 260, 260, 345, 405, 465, 525);
                //------------0--1---2----3----4----5----6----7----8----9----10-------
                //------------------------dim1----------------------------------------
                $headers = array(_('Type'),     _('Ref'), _('#'),       _('Date'), _('Dimension'), "", _('Person/Item'),