From e09e79ede2a69dba5a6579e2a616b4fadf356c16 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sat, 26 Jun 2021 16:02:34 +0200 Subject: [PATCH] 2.4.10 Balance and Profit and loss reports fail to print. Fixed. --- reporting/rep706.php | 8 ++++---- reporting/rep707.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/reporting/rep706.php b/reporting/rep706.php index cc41fd39..4a66e01d 100644 --- a/reporting/rep706.php +++ b/reporting/rep706.php @@ -92,7 +92,7 @@ function display_type ($type, $typename, $from, $to, $convert, &$dec, &$rep, $di } $totals_arr = display_type($accounttype["id"], $accounttype["name"], $from, $to, $convert, $dec, - $rep, $dimension, $dimension2, $tags, $pg, $graphics); + $rep, $dimension, $dimension2, $tags, $pg, $graphics, $labels, $serie1, $serie2); $open_balance_total += $totals_arr[0]; $period_balance_total += $totals_arr[1]; } @@ -169,13 +169,13 @@ function print_balance_sheet() else include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $orientation = ($orientation ? 'L' : 'P'); + $labels = array(); + $serie1 = array(); + $serie2 = array(); if ($graphics) { include_once($path_to_root . "/reporting/includes/class.graphic.inc"); $pg = new Chart($graphics); - $labels = array(); - $serie1 = array(); - $serie2 = array(); } if (!$decimals) $dec = 0; diff --git a/reporting/rep707.php b/reporting/rep707.php index cf259005..2acafb07 100644 --- a/reporting/rep707.php +++ b/reporting/rep707.php @@ -100,7 +100,7 @@ function display_type ($type, $typename, $from, $to, $begin, $end, $compare, $co } $totals_arr = display_type($accounttype["id"], $accounttype["name"], $from, $to, $begin, $end, $compare, $convert, $dec, - $pdec, $rep, $dimension, $dimension2, $tags, $pg, $graphics); + $pdec, $rep, $dimension, $dimension2, $tags, $pg, $graphics, $labels, $serie1, $serie2); $per_balance_total += $totals_arr[0]; $acc_balance_total += $totals_arr[1]; } @@ -192,13 +192,13 @@ function print_profit_and_loss_statement() else include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $orientation = ($orientation ? 'L' : 'P'); + $labels = array(); + $serie1 = array(); + $serie2 = array(); if ($graphics) { include_once($path_to_root . "/reporting/includes/class.graphic.inc"); $pg = new Chart($graphics); - $labels = array(); - $serie1 = array(); - $serie2 = array(); } if (!$decimals) $dec = 0; -- 2.30.2