2.4.10 Balance and Profit and loss reports fail to print. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 26 Jun 2021 14:02:34 +0000 (16:02 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 26 Jun 2021 14:02:34 +0000 (16:02 +0200)
reporting/rep706.php
reporting/rep707.php

index cc41fd395a4ac5de79085a58bf24d4e272f2c4f5..4a66e01dce6c384705fbf0fe41862f8b2446d4dc 100644 (file)
@@ -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;
index cf2590054015697fc70e19062403016e5acc36f5..2acafb07fcd787461a65a6abc6f87f5805f1d379 100644 (file)
@@ -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;