From: Joe Date: Sun, 12 Jan 2025 10:31:08 +0000 (+0100) Subject: Spacing adjustment for rep705.php X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=refs%2Fremotes%2Fgithub%2Fmaster;p=fa-stable.git Spacing adjustment for rep705.php --- diff --git a/reporting/rep705.php b/reporting/rep705.php index dfc9208a..5f836fcd 100644 --- a/reporting/rep705.php +++ b/reporting/rep705.php @@ -222,8 +222,7 @@ function print_annual_expense_breakdown() $amts_thousands = ""; $fontSize = ($orientation == 'P' ? 7 : 8); } - - $cols = array(0, 34, 130, 162, 194, 226, 258, 290, 322, 354, 386, 418, 450, 482, 514, 546); + $cols = array(0, 34, 130, 163, 196, 229, 262, 295, 328, 361, 394, 427, 460, 493, 526, 561); //------------0--1---2----3----4----5----6----7----8----10---11---12---13---14---15---16- // from now @@ -291,13 +290,13 @@ function print_annual_expense_breakdown() $rep = new FrontReport(_('Annual Expense Breakdown'), "AnnualBreakDown", user_pagesize(), $fontSize, $orientation); - if ($orientation == 'L') + if ($orientation == 'L') recalculate_cols($cols); - elseif (user_pagesize() == 'A4') + if (user_pagesize() == 'A4') { - // Portrait, so adjust columns for A4, 16.7 pts narrower than Letter + // Portrait, so adjust columns for A4, 30 pts narrower than Letter for ($i = 2; $i < sizeof($cols); $i++) - $cols[$i] -= 17; + $cols[$i] -= 30; } $rep->Font();