X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep707.php;h=1228e10bdbc2c28fe10b79443d666aadf808a9dc;hb=41f4f83b97d8afc5f4c1be4afccd5049cd5641c0;hp=7059d837b397ce1bf7dda7696ebc2bcb318c01f5;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/reporting/rep707.php b/reporting/rep707.php index 7059d837..1228e10b 100644 --- a/reporting/rep707.php +++ b/reporting/rep707.php @@ -37,7 +37,7 @@ function Achieve($d1, $d2) function print_profit_and_loss_statement() { - global $path_to_root; + global $comp_path, $path_to_root; include_once($path_to_root . "reporting/includes/pdf_report.inc"); $dim = get_company_pref('use_dimension'); @@ -295,7 +295,7 @@ function print_profit_and_loss_statement() $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;