Creating a warning when opening balance in trial balance is not in balance,
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 3 Dec 2010 10:25:35 +0000 (10:25 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 3 Dec 2010 10:25:35 +0000 (10:25 +0000)
CHANGELOG.txt
gl/inquiry/gl_trial_balance.php
reporting/rep708.php

index 3703cd338e00c55a556f30b2b7bc7c663069e60f..c55772294eaa755ba693fb964d87660ea8e4cb2d 100644 (file)
@@ -19,6 +19,12 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+03-Dec-2010 Joe Hunt
++ Creating a warning when opening balance in trial balance is not in balance,
+  and a probably cause of that.
+$ /gl/inquiry/gl_trial_balance.php
+  /reporting/rep708.php
+  
 02-Dec-2010 Joe Hunt
 # When deleting a fiscal year, the open balances should share the same trans no.
 $ /admin/db/fiscalyear_db.inc
index 580cefa3372b1d7c7b11df38a6aec406800f7557..e5eb20cc706bd3cf71d615851a71158dc4c7db2f 100644 (file)
@@ -169,6 +169,8 @@ function display_trial_balance()
        end_row();
 
        end_table(1);
+       if ($pbal != 0)
+               display_warning(_("The Opening Balance is not in balance, probably due to a non closed Previous Fiscalyear."));
        div_end();
 }
 
index ee490c12c8703c050b18e6bd19d1097c40214153..277d18158fef6b89d7979ea449a27144d963e85a 100644 (file)
@@ -202,9 +202,14 @@ function print_trial_balance()
        else
                $rep->AmountCol(7, 8, abs($tbal), $dec);
        $rep->NewLine();
-       
+               
        $rep->Line($rep->row);
-       
+       if ($pbal != 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();
 }