X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep102.php;h=22c2d8a96edf7859ca6283e4a92e3d7469ee56fe;hb=25379bdc9f10bda4aae4b37f04d16eb1bbe7e4f6;hp=e407c6d7b8f77a2323d55d83a5e2a42b2b936584;hpb=a9d55e1c13cbd6a6305b9322ec8621a06516f9f3;p=fa-stable.git diff --git a/reporting/rep102.php b/reporting/rep102.php index e407c6d7..22c2d8a9 100644 --- a/reporting/rep102.php +++ b/reporting/rep102.php @@ -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;