X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep706.php;h=9917bf534b6f2fabb666338f38c11d705ffa436f;hb=e335b7bff88d068f584da89c61bbfad38632dfe9;hp=68b52f98ef8c0863730741ef6d403585678bdbeb;hpb=1273d798e494986d5d35b885ccbd0ccaaa0c2695;p=fa-stable.git diff --git a/reporting/rep706.php b/reporting/rep706.php index 68b52f98..9917bf53 100644 --- a/reporting/rep706.php +++ b/reporting/rep706.php @@ -54,17 +54,17 @@ function print_balance_sheet() { include_once($path_to_root . "reporting/includes/class.graphic.inc"); $pg = new graph(); - } + } $dec = 0; $cols = array(0, 50, 200, 350, 425, 500); //------------0--1---2----3----4----5-- - + $headers = array(_('Account'), _('Account Name'), _('Open Balance'), _('Period'), _('Close Balance')); - + $aligns = array('left', 'left', 'right', 'right', 'right'); - + if ($dim == 2) { $params = array( 0 => $comments, @@ -104,6 +104,7 @@ function print_balance_sheet() $assetsopen = 0.0; $assetsperiod = 0.0; $assetsclose = 0.0; + $closeclass = false; $accounts = get_gl_accounts_all(1); @@ -138,7 +139,7 @@ function print_balance_sheet() { $pg->x[] = $group; $pg->y[] = abs($totalclose); - } + } $totalopen = $totalperiod = $totalclose = 0.0; $rep->row -= ($rep->lineHeight + 4); if ($closeclass) @@ -215,7 +216,7 @@ function print_balance_sheet() { $pg->x[] = $group; $pg->y[] = abs($totalclose); - } + } $rep->row -= ($rep->lineHeight + 4); if ($closeclass) { @@ -233,7 +234,7 @@ function print_balance_sheet() { $pg->x[] = _('Calculated Return'); $pg->y[] = abs($calculateclose); - } + } $rep->row -= ($rep->lineHeight + 4); $rep->Font('bold');