X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep708.php;h=2095602919aaf7e4ed3b9df4bdf75ba591dde530;hb=fdb0ed9e45cc7876ad7a72f78b17f23562593e9e;hp=277d18158fef6b89d7979ea449a27144d963e85a;hpb=c7214c7c4ef274b9214ba1f42e14cf27e0c5327c;p=fa-stable.git diff --git a/reporting/rep708.php b/reporting/rep708.php index 277d1815..20956029 100644 --- a/reporting/rep708.php +++ b/reporting/rep708.php @@ -19,6 +19,7 @@ $page_security = 'SA_GLANALYTIC'; $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"); @@ -204,10 +205,10 @@ function print_trial_balance() $rep->NewLine(); $rep->Line($rep->row); - if ($pbal != 0.0) + if (($pbal = round2($pbal, $dec)) != 0.0) { - $rep->NewLine(2); - $rep->Font(); + $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();