X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep708.php;h=2095602919aaf7e4ed3b9df4bdf75ba591dde530;hb=46c5f7a65a7659a44ae8254c63152074363d3987;hp=dd027188395336bf1ca0936948e6e5edffe40c10;hpb=b7abcfdf70f6e1d61e977ac555603c591cf0006f;p=fa-stable.git diff --git a/reporting/rep708.php b/reporting/rep708.php index dd027188..20956029 100644 --- a/reporting/rep708.php +++ b/reporting/rep708.php @@ -9,7 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 2; +$page_security = 'SA_GLANALYTIC'; // ---------------------------------------------------------------- // $ Revision: 2.0 $ // Creator: Joe Hunt @@ -19,6 +19,7 @@ $page_security = 2; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/gl/includes/gl_db.inc"); @@ -107,7 +108,7 @@ function print_trial_balance() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2); - $rep->Header(); + $rep->NewPage(); $accounts = get_gl_accounts(); @@ -165,7 +166,7 @@ function print_trial_balance() if ($rep->row < $rep->bottomMargin + $rep->lineHeight) { $rep->Line($rep->row - 2); - $rep->Header(); + $rep->NewPage(); } } $rep->Line($rep->row); @@ -202,9 +203,14 @@ function print_trial_balance() else $rep->AmountCol(7, 8, abs($tbal), $dec); $rep->NewLine(); - + $rep->Line($rep->row); - + if (($pbal = round2($pbal, $dec)) != 0.0) + { + $rep->NewLine(2); + $rep->Font(); + $rep->TextCol(0, 8, _("The Opening Balance is not in balance, probably due to a non closed Previous Fiscalyear.")); + } $rep->End(); }