Cleanup in gl_db_trans.inc
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 28 Sep 2017 16:06:56 +0000 (18:06 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 28 Sep 2017 16:06:56 +0000 (18:06 +0200)
gl/includes/db/gl_db_trans.inc

index b2560f75b1779ca2932adf6948cf5d6b40de3344..4749b41354c7c8c277f8e5a679e4a9b3ae2eb6fe 100644 (file)
@@ -141,9 +141,8 @@ function get_gl_transactions($from_date, $to_date, $trans_no=0,
                WHERE coa.account_code=gl.account
                AND ISNULL(v.date_)
                AND gl.tran_date >= '$from'
-               AND gl.tran_date <= '$to'";
-       if (isset($SysPrefs->show_voided_gl_trans) && $SysPrefs->show_voided_gl_trans == 0)
-               $sql .= " AND gl.amount <> 0"; 
+               AND gl.tran_date <= '$to'
+               AND gl.amount <> 0"; 
 
        if ($person_id)
                $sql .= " AND gl.person_id=".db_escape($person_id);