Minor bug in on screen Trial Balance (wrong Dimension warning)
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 13 Apr 2011 12:50:02 +0000 (14:50 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 13 Apr 2011 12:50:02 +0000 (14:50 +0200)
gl/inquiry/gl_trial_balance.php

index 2ab116243bbeb309f770e4bd27d912d839040f88..e4228cb2beb4180e8688c10dcbf7ca708c046654 100644 (file)
@@ -223,7 +223,7 @@ while ($class = db_fetch($classresult))
        end_row();
 
        end_table(1);
-       if (($pbal = round2($pbal, user_price_dec()))  != 0)
+       if (($pbal = round2($pbal, user_price_dec())) != 0 && $_POST['Dimension'] == 0 && $_POST['Dimension2'] == 0)
                display_warning(_("The Opening Balance is not in balance, probably due to a non closed Previous Fiscalyear."));
        div_end();