X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep701.php;fp=reporting%2Frep701.php;h=4f49b549fbf91c399fc69bc6ec93aff30487d2f9;hb=fa3dd600a4b60b528e4c69519c856125e6c3f9bf;hp=6a44328efee127c786589cc51f49b31be3ea64ff;hpb=fc72e71a81a7d2c9d68eabbb1200d4c0cbf17f6e;p=fa-stable.git diff --git a/reporting/rep701.php b/reporting/rep701.php index 6a44328e..4f49b549 100644 --- a/reporting/rep701.php +++ b/reporting/rep701.php @@ -60,34 +60,31 @@ function print_Chart_of_Accounts() $classname = ''; $group = ''; - $types = get_account_types_all(); + $accounts = get_gl_accounts_all(); - while ($type=db_fetch($types)) + while ($account=db_fetch($accounts)) { - if (!num_accounts_in_type($type['AccountType'], $type['parent'])) - continue; - if ($type['AccountTypeName'] != $group) + if ($account['AccountTypeName'] != $group) { if ($classname != '') $rep->row -= 4; - if ($type['AccountClassName'] != $classname) + if ($account['AccountClassName'] != $classname) { $rep->Font('bold'); - $rep->TextCol(0, 4, $type['AccountClassName']); + $rep->TextCol(0, 4, $account['AccountClassName']); $rep->Font(); //$rep->row -= ($rep->lineHeight + 4); $rep->NewLine(); } - $group = $type['AccountTypeName']; - $rep->TextCol(0, 4, $type['AccountTypeName']); + $group = $account['AccountTypeName']; + $rep->TextCol(0, 4, $account['AccountTypeName']); //$rep->Line($rep->row - 4); //$rep->row -= ($rep->lineHeight + 4); $rep->NewLine(); } - $classname = $type['AccountClassName']; + $classname = $account['AccountClassName']; - $accounts = get_gl_accounts_in_type($type['AccountType']); - while ($account=db_fetch($accounts)) + if ($account['account_code'] != null) { if ($showbalance == 1) {