Incorrect Journal Balance (sales invoice) when many decimals in tax and price.
[fa-stable.git] / reporting / includes / excel_report.inc
index 483d0fde157170d2d66fd99dc390d856908f6a83..1ee91c703076d348a48c0b99ba502bb0fbd45898 100644 (file)
@@ -240,7 +240,7 @@ class FrontReport extends Spreadsheet_Excel_Writer_Workbook
                $this->headers2 = $headers2;
                $this->aligns2 = $aligns2;
                $this->numcols = count($this->headers);
-               $tcols = count($this->headers2);
+               $tcols = count_array($this->headers2);
                if ($tcols > $this->numcols)
                        $this->numcols = $tcols;
                for ($i = 0; $i < $this->numcols; $i++)