X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep102.php;h=42afc13e9e6a402d625aac1a4407084c77120443;hb=bd8f517d30d1edd3261e26e582ddd9e11c555616;hp=d0856e0c554977c578134a4d7ef3316ee1fa10d5;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/reporting/rep102.php b/reporting/rep102.php index d0856e0c..42afc13e 100644 --- a/reporting/rep102.php +++ b/reporting/rep102.php @@ -69,7 +69,7 @@ function get_invoices($customer_id, $to, $all=true) function print_aged_customer_analysis() { - global $path_to_root, $systypes_array; + global $path_to_root, $systypes_array, $SysPrefs; $to = $_POST['PARAM_0']; $fromcust = $_POST['PARAM_1']; @@ -238,16 +238,15 @@ function print_aged_customer_analysis() $rep->Line($rep->row - 8); 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;