Fixed error during new category addition.
[fa-stable.git] / gl / inquiry / journal_inquiry.php
index 31037434d2f1b33eb3e986ba5a38d1d1014cc500..834c444bdb10645159fab7844571f3ca3d9c7023 100644 (file)
@@ -135,6 +135,9 @@ if (isset($_POST['Ref']) && $_POST['Ref'] != "") {
 if (get_post('filterType') != -1) {
        $sql .= " AND gl.type=".get_post('filterType');
 }
+if (!check_value('AlsoClosed')) {
+       $sql .= " AND a.gl_seq=0";
+}
 
 $sql .= " GROUP BY gl.type, gl.type_no";