From: Joe Hunt Date: Sun, 17 May 2020 08:49:21 +0000 (+0200) Subject: Optimizing some reports. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=efa47c3c14d52adf0566652ac1b02aa3ade9d94b Optimizing some reports. --- 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'),