X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep202.php;h=ce39dd8668a2cc403e017e84533c45acbebcf7ce;hb=412b79dc32855f813d03a8a6dd9debd45bb308f5;hp=6c23b6347045aa1825ca2df088a0089aff5b3dc3;hpb=431531eebf3ba494002cfbf7ea36f9e82d4975c0;p=fa-stable.git diff --git a/reporting/rep202.php b/reporting/rep202.php index 6c23b634..ce39dd86 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -107,7 +107,7 @@ function get_invoices($supplier_id, $to) function print_aged_supplier_analysis() { - global $path_to_root; + global $comp_path, $path_to_root; include_once($path_to_root . "reporting/includes/pdf_report.inc"); @@ -268,7 +268,7 @@ function print_aged_supplier_analysis() $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 = $path_to_root . "reporting/pdf_files/test.png"; + $filename = $comp_path.'/'.user_company(). "/pdf_files/test.png"; $pg->display($filename, true); $w = $pg->width / 1.5; $h = $pg->height / 1.5;