Annual Expense Breakdown Report: additional bugfix.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 17 Feb 2020 11:40:35 +0000 (12:40 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 17 Feb 2020 11:40:35 +0000 (12:40 +0100)
reporting/rep705.php

index 80610ad6c70abc4fd3a4798bfcdebe4f670f4887..f32e5674c2f1337010b880d846880ea1d09b237e 100644 (file)
@@ -296,7 +296,7 @@ function print_annual_expense_breakdown()
        elseif (user_pagesize() == 'A4')
        {
                // Portrait, so adjust columns for A4, 16.7 pts narrower than Letter
-               for ($i = 2; $i <= 16; $i++)
+               for ($i = 2; $i < sizeof($cols); $i++)
                        $cols[$i] -= 17;
        }