X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep701.php;fp=reporting%2Frep701.php;h=4f49b549fbf91c399fc69bc6ec93aff30487d2f9;hb=2383d33373d6ddec06906658a0ed6398077c1147;hp=63c90c39ede42b88b85206d4c4224389b1e33793;hpb=eb5b2d3ee7cc0fca5ec63dfada65ecf23b693e85;p=fa-stable.git diff --git a/reporting/rep701.php b/reporting/rep701.php index 63c90c39..4f49b549 100644 --- a/reporting/rep701.php +++ b/reporting/rep701.php @@ -64,13 +64,6 @@ function print_Chart_of_Accounts() while ($account=db_fetch($accounts)) { - if ($showbalance == 1) - { - $begin = begin_fiscalyear(); - if (is_account_balancesheet($account["account_code"])) - $begin = ""; - $balance = get_gl_trans_from_to($begin, ToDay(), $account["account_code"], 0); - } if ($account['AccountTypeName'] != $group) { if ($classname != '') @@ -90,19 +83,29 @@ function print_Chart_of_Accounts() $rep->NewLine(); } $classname = $account['AccountClassName']; - - $rep->TextCol(0, 1, $account['account_code']); - $rep->TextCol(1, 2, $account['account_name']); - $rep->TextCol(2, 3, $account['account_code2']); - if ($showbalance == 1) - $rep->AmountCol(3, 4, $balance, $dec); - - $rep->NewLine(); - if ($rep->row < $rep->bottomMargin + 3 * $rep->lineHeight) + + if ($account['account_code'] != null) { - $rep->Line($rep->row - 2); - $rep->Header(); - } + if ($showbalance == 1) + { + $begin = begin_fiscalyear(); + if (is_account_balancesheet($account["account_code"])) + $begin = ""; + $balance = get_gl_trans_from_to($begin, ToDay(), $account["account_code"], 0); + } + $rep->TextCol(0, 1, $account['account_code']); + $rep->TextCol(1, 2, $account['account_name']); + $rep->TextCol(2, 3, $account['account_code2']); + if ($showbalance == 1) + $rep->AmountCol(3, 4, $balance, $dec); + + $rep->NewLine(); + if ($rep->row < $rep->bottomMargin + 3 * $rep->lineHeight) + { + $rep->Line($rep->row - 2); + $rep->Header(); + } + } } $rep->Line($rep->row); $rep->End();