X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep102.php;h=42afc13e9e6a402d625aac1a4407084c77120443;hb=927ebef2443b6dda544056e33ec84b71d2bdb6c2;hp=5940cc5102ef4f522c4e879e2f6d4d6c7a96023c;hpb=0489317205141deaecefe3a7243d11a3e38a51d0;p=fa-stable.git diff --git a/reporting/rep102.php b/reporting/rep102.php index 5940cc51..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']; @@ -139,7 +139,7 @@ function print_aged_customer_analysis() $headers[2] = _('Currency'); $rep = new FrontReport(_('Aged Customer Analysis'), "AgedCustomerAnalysis", user_pagesize(), 9, $orientation); if ($orientation == 'L') - $rep->recalculate_cols($cols); + recalculate_cols($cols); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); @@ -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; @@ -262,4 +261,3 @@ function print_aged_customer_analysis() $rep->End(); } -?>