From: Joe Hunt Date: Fri, 3 Dec 2010 10:25:35 +0000 (+0000) Subject: Creating a warning when opening balance in trial balance is not in balance, X-Git-Tag: v2.4.2~19^2~440 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=c7214c7c4ef274b9214ba1f42e14cf27e0c5327c;p=fa-stable.git Creating a warning when opening balance in trial balance is not in balance, --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 3703cd33..c5577229 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/gl/inquiry/gl_trial_balance.php b/gl/inquiry/gl_trial_balance.php index 580cefa3..e5eb20cc 100644 --- a/gl/inquiry/gl_trial_balance.php +++ b/gl/inquiry/gl_trial_balance.php @@ -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(); } diff --git a/reporting/rep708.php b/reporting/rep708.php index ee490c12..277d1815 100644 --- a/reporting/rep708.php +++ b/reporting/rep708.php @@ -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(); }