Fixed print of taxes on documents
[fa-stable.git] / reporting / rep707.php
index 85ef695ffe260cbe9b5f75da0c3fac8975e51d3d..211e504fe473aa04a68eca5a7cd2d4de2f09d60a 100644 (file)
@@ -101,7 +101,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, $pg, $graphics);
+                       $pdec, $rep, $dimension, $dimension2, $tags, $pg, $graphics);
                $per_balance_total += $totals_arr[0];
                $acc_balance_total += $totals_arr[1];
        }
@@ -324,9 +324,8 @@ function print_profit_and_loss_statement()
                $pg->type      = $graphics;
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
-               $pg->fontfile  = $path_to_root . "/reporting/fonts/Vera.ttf";
                $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
-               $filename = company_path(). "/pdf_files/test.png";
+               $filename = company_path(). "/pdf_files/". uniqid("").".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;