X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep202.php;h=c61c2aa5dd9ba290d8df939f8a7f69622895e764;hb=bd8f517d30d1edd3261e26e582ddd9e11c555616;hp=7efc74c5184392c905a7b1b59c583d28fe702d5a;hpb=fbf51ab0febfd0885620abcab8738339d156ff45;p=fa-stable.git diff --git a/reporting/rep202.php b/reporting/rep202.php index 7efc74c5..c61c2aa5 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -72,7 +72,7 @@ function get_invoices($supplier_id, $to, $all=true) function print_aged_supplier_analysis() { - global $path_to_root, $systypes_array; + global $path_to_root, $systypes_array, $SysPrefs; $to = $_POST['PARAM_0']; $fromsupp = $_POST['PARAM_1']; @@ -246,16 +246,15 @@ function print_aged_supplier_analysis() $rep->NewLine(); if ($graphics) { - global $decseps, $graph_skin; $pg->x = array(_('Current'), $nowdue, $pastdue1, $pastdue2); $pg->title = $rep->title; $pg->axis_x = _("Days"); $pg->axis_y = _("Amount"); $pg->graphic_1 = $to; $pg->type = $graphics; - $pg->skin = $graph_skin; + $pg->skin = $SysPrefs->graph_skin; $pg->built_in = false; - $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != "."); + $pg->latin_notation = ($SysPrefs->decseps[user_dec_sep()] != "."); $filename = company_path(). "/pdf_files/". uniqid("").".png"; $pg->display($filename, true); $w = $pg->width / 1.5; @@ -269,4 +268,3 @@ function print_aged_supplier_analysis() $rep->End(); } -?>