From efa47c3c14d52adf0566652ac1b02aa3ade9d94b Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 17 May 2020 10:49:21 +0200 Subject: [PATCH] Optimizing some reports. --- reporting/rep115.php | 2 +- reporting/rep704.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reporting/rep115.php b/reporting/rep115.php index 01085565..ee03bf8a 100644 --- a/reporting/rep115.php +++ b/reporting/rep115.php @@ -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); diff --git a/reporting/rep704.php b/reporting/rep704.php index 23a52fca..f62b2d19 100644 --- a/reporting/rep704.php +++ b/reporting/rep704.php @@ -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'), -- 2.30.2