projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed finally unimplemented freight cost field in Purchasing.
[fa-stable.git]
/
reporting
/
rep102.php
diff --git
a/reporting/rep102.php
b/reporting/rep102.php
index 95d267c352f02b8b0d73759922331b4fc57089a4..22c2d8a96edf7859ca6283e4a92e3d7469ee56fe 100644
(file)
--- a/
reporting/rep102.php
+++ b/
reporting/rep102.php
@@
-67,14
+67,14
@@
function print_aged_customer_analysis()
{
global $path_to_root, $systypes_array, $SysPrefs;
{
global $path_to_root, $systypes_array, $SysPrefs;
-
$to = $_POST['PARAM_0'];
-
$fromcust = $_POST['PARAM_1'];
-
$currency = $_POST['PARAM_2'];
-
$show_all = $_POST['PARAM_3'];
+ $to = $_POST['PARAM_0'];
+ $fromcust = $_POST['PARAM_1'];
+ $currency = $_POST['PARAM_2'];
+ $show_all = $_POST['PARAM_3'];
$summaryOnly = $_POST['PARAM_4'];
$summaryOnly = $_POST['PARAM_4'];
-
$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'];
$orientation = $_POST['PARAM_8'];
$destination = $_POST['PARAM_9'];
if ($destination)
$orientation = $_POST['PARAM_8'];
$destination = $_POST['PARAM_9'];
if ($destination)
@@
-204,7
+204,7
@@
function print_aged_customer_analysis()
}
foreach ($trans as $i => $value)
}
foreach ($trans as $i => $value)
- $trans[$i]
*=
$rate;
+ $trans[$i]
= (float)$trans[$i] *
$rate;
$str = array($trans["Balance"] - $trans["Due"],
$trans["Due"]-$trans["Overdue1"],
$trans["Overdue1"]-$trans["Overdue2"],
$str = array($trans["Balance"] - $trans["Due"],
$trans["Due"]-$trans["Overdue1"],
$trans["Overdue1"]-$trans["Overdue2"],
@@
-245,7
+245,7
@@
function print_aged_customer_analysis()
$pg->skin = $SysPrefs->graph_skin;
$pg->built_in = false;
$pg->latin_notation = ($SysPrefs->decseps[user_dec_sep()] != ".");
$pg->skin = $SysPrefs->graph_skin;
$pg->built_in = false;
$pg->latin_notation = ($SysPrefs->decseps[user_dec_sep()] != ".");
- $filename = company_path(). "/pdf_files/".
uniqid(""
).".png";
+ $filename = company_path(). "/pdf_files/".
random_id(
).".png";
$pg->display($filename, true);
$w = $pg->width / 1.5;
$h = $pg->height / 1.5;
$pg->display($filename, true);
$w = $pg->width / 1.5;
$h = $pg->height / 1.5;