Imporved readibility.
[fa-stable.git] / reporting / rep708.php
index ee490c12c8703c050b18e6bd19d1097c40214153..2095602919aaf7e4ed3b9df4bdf75ba591dde530 100644 (file)
@@ -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");
@@ -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();
 }