Fixed extension module update and deletion.
[fa-stable.git] / sales / inquiry / customer_allocation_inquiry.php
index 5fb9ad81361fb0e6476ba24b0f6c82083ad504fa..fae2ad0ff7c0c840558e3b3f1bef71d75e9e22e9 100644 (file)
@@ -161,7 +161,7 @@ function fmt_credit($row)
                AND trans.tran_date <= '$date_to'";
 
        if ($_POST['customer_id'] != ALL_TEXT)
-               $sql .= " AND trans.debtor_no = '" . $_POST['customer_id'] . "'";
+               $sql .= " AND trans.debtor_no = ".db_escape($_POST['customer_id']);
 
        if (isset($_POST['filterType']) && $_POST['filterType'] != ALL_TEXT)
        {
@@ -224,10 +224,6 @@ if ($_POST['customer_id'] != ALL_TEXT) {
 $table =& new_db_pager('doc_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 = "80%";
 start_form();