X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep102.php;h=508844da6c5d233fd8afffdba82d425a60b950a5;hb=f63c58475b057c9f4a05894a6935ea351b6d7af3;hp=ffe022f81930f8dc4a158e1cfe927acea859eec0;hpb=431531eebf3ba494002cfbf7ea36f9e82d4975c0;p=fa-stable.git diff --git a/reporting/rep102.php b/reporting/rep102.php index ffe022f8..508844da 100644 --- a/reporting/rep102.php +++ b/reporting/rep102.php @@ -98,7 +98,7 @@ function get_invoices($costomer_id, $to) function print_aged_customer_analysis() { - global $path_to_root; + global $comp_path, $path_to_root; include_once($path_to_root . "reporting/includes/pdf_report.inc"); @@ -228,7 +228,7 @@ function print_aged_customer_analysis() $rep->Line($rep->row + 4); $rep->NewLine(); } - $rep->fontSize += 2; + $rep->fontSize += 2; $rep->TextCol(0, 3, _('Grand Total')); $rep->fontSize -= 2; for ($i = 0; $i < count($total); $i++) @@ -253,7 +253,7 @@ function print_aged_customer_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(). "/images/test.png"; $pg->display($filename, true); $w = $pg->width / 1.5; $h = $pg->height / 1.5;