X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Finquiry%2Fcustomer_inquiry.php;h=5315aa2d988cfb02ff7cf3a4c7e59db6ba625af5;hb=f48dce88b74eb81e3398d9f36eee19394c4f023c;hp=abfb73daf301b6edd3001a356b8cd477a315af6d;hpb=ddadb47f2620ce6902ad4694ce6512568862ba05;p=fa-stable.git diff --git a/sales/inquiry/customer_inquiry.php b/sales/inquiry/customer_inquiry.php index abfb73da..5315aa2d 100644 --- a/sales/inquiry/customer_inquiry.php +++ b/sales/inquiry/customer_inquiry.php @@ -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();