Release 2.4.8
[fa-stable.git] / reporting / rep102.php
index e407c6d7b8f77a2323d55d83a5e2a42b2b936584..22c2d8a96edf7859ca6283e4a92e3d7469ee56fe 100644 (file)
@@ -204,7 +204,7 @@ function print_aged_customer_analysis()
                                }
 
                                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"],
@@ -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()] != ".");
-               $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;