Merged changes form stable branch up to 2.3.13
[fa-stable.git] / reporting / rep706.php
index 674e25027cdf2a72692200443968212ca8cde232..8a0e4d459c60bdac2f50db7607a3490781c8842a 100644 (file)
@@ -306,9 +306,8 @@ function print_balance_sheet()
                $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;