Fixed default access for sales order inquiry.
[fa-stable.git] / sales / inquiry / customer_inquiry.php
index abfb73daf301b6edd3001a356b8cd477a315af6d..5315aa2d988cfb02ff7cf3a4c7e59db6ba625af5 100644 (file)
@@ -237,7 +237,7 @@ function check_overdue($row)
        {
                if ($_POST['filterType'] == '1')
                {
-                       $sql .= " AND (trans.type = ".ST_SALESINVOICE." OR trans.type = ST_BANKPAYMENT) ";
+                       $sql .= " AND (trans.type = ".ST_SALESINVOICE." OR trans.type = ".ST_BANKPAYMENT.") ";
                }
                elseif ($_POST['filterType'] == '2')
                {
@@ -295,10 +295,6 @@ if ($_POST['customer_id'] != ALL_TEXT) {
 $table =& new_db_pager('trans_tbl', $sql, $cols);
 $table->set_marker('check_overdue', _("Marked items are overdue."));
 
-if (get_post('RefreshInquiry')) {
-       $table->set_sql($sql);
-       $table->set_columns($cols);
-}
 $table->width = "85%";
 
 start_form();