X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep706.php;h=a1dece20730fe782b6a9cb74f0bb4ef547d7e0aa;hb=64ece402c019dd54bd6ca9882fd300362ef42871;hp=a8c64ec720839466a7fce992e4649eec9db8fe88;hpb=a8d2bad4b2fbda5eaa5bcbf96733c2979b8083c7;p=fa-stable.git diff --git a/reporting/rep706.php b/reporting/rep706.php index a8c64ec7..a1dece20 100644 --- a/reporting/rep706.php +++ b/reporting/rep706.php @@ -236,7 +236,7 @@ function print_balance_sheet() } $classname = $account['AccountClassName']; $ctype = $account['ClassType']; - $convert = (($ctype == CL_LIABILITIES || $ctype == CL_EQUITY || $ctype == 0) ? -1 : 1); // backwards compatibility + $convert = get_class_type_convert($ctype); if ($account['account_code'] != null) { @@ -331,11 +331,13 @@ function print_balance_sheet() $rep->AmountCol(2, 3, -$assetsopen * $convert, $dec); $rep->AmountCol(3, 4, -$assetsperiod * $convert, $dec); $rep->AmountCol(4, 5, -$assetsclose * $convert, $dec); + $rep->Font(); $rep->NewLine(); if ($equityopen != 0.0 || $equityperiod != 0.0 || $equityclose != 0.0 || $lopen != 0.0 || $lperiod != 0.0 || $lclose != 0.0) { $rep->NewLine(); + $rep->Font('bold'); $rep->TextCol(0, 2, _('Total') . " " . _('Liabilities') . _(' and ') . _('Equities')); $rep->AmountCol(2, 3, ($lopen + $equityopen + $calculateopen) * -1, $dec); $rep->AmountCol(3, 4, ($lperiod + $equityperiod + $calculateperiod) * -1, $dec); @@ -343,7 +345,6 @@ function print_balance_sheet() $rep->Font(); $rep->NewLine(); } - $rep->Font(); } } }