Foxed a non well formed numeric value encountered rep202.php. @apmuthu.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 17 Dec 2018 08:41:08 +0000 (09:41 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 17 Dec 2018 08:41:08 +0000 (09:41 +0100)
reporting/rep202.php

index dc899f577af2c7e9910ed1f11831a4580f61aa2f..04d1afa1d5365b735759ebde3e44376685740745 100644 (file)
@@ -211,7 +211,7 @@ function print_aged_supplier_analysis()
                                $rep->TextCol(1, 2,     $trans['reference'], -2);
                                $rep->TextCol(2, 3,     sql2date($trans['tran_date']), -2);
                                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"],