projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git]
/
reporting
/
rep202.php
diff --git
a/reporting/rep202.php
b/reporting/rep202.php
index 5901260596b53b878a93ff35f6fbdbbb1bb163b2..c61c2aa5dd9ba290d8df939f8a7f69622895e764 100644
(file)
--- 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()
{
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'];
$to = $_POST['PARAM_0'];
$fromsupp = $_POST['PARAM_1'];
@@
-82,12
+82,14
@@
function print_aged_supplier_analysis()
$no_zeros = $_POST['PARAM_5'];
$graphics = $_POST['PARAM_6'];
$comments = $_POST['PARAM_7'];
$no_zeros = $_POST['PARAM_5'];
$graphics = $_POST['PARAM_6'];
$comments = $_POST['PARAM_7'];
- $destination = $_POST['PARAM_8'];
+ $orientation = $_POST['PARAM_8'];
+ $destination = $_POST['PARAM_9'];
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
+ $orientation = ($orientation ? 'L' : 'P');
if ($graphics)
{
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
if ($graphics)
{
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
@@
-140,7
+142,9
@@
function print_aged_supplier_analysis()
if ($convert)
$headers[2] = _('currency');
if ($convert)
$headers[2] = _('currency');
- $rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize());
+ $rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
@@
-242,16
+246,15
@@
function print_aged_supplier_analysis()
$rep->NewLine();
if ($graphics)
{
$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->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->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;
$filename = company_path(). "/pdf_files/". uniqid("").".png";
$pg->display($filename, true);
$w = $pg->width / 1.5;
@@
-265,4
+268,3
@@
function print_aged_supplier_analysis()
$rep->End();
}
$rep->End();
}
-?>