Cleanup: removed _GET/_POST references from business logic model.
[fa-stable.git] / sales / inquiry / customer_inquiry.php
index 4356121379971c0cb2bc167657ab9162d08fb5aa..5687d0fcdbe47ed800870410a82b2263f5551981 100644 (file)
@@ -191,7 +191,8 @@ function check_overdue($row)
                && floatcmp($row["TotalAmount"], $row["Allocated"]) != 0;
 }
 //------------------------------------------------------------------------------------------------
-$sql = get_sql_for_customer_inquiry();
+$sql = get_sql_for_customer_inquiry(get_post('TransAfterDate'), get_post('TransToDate'),
+       get_post('customer_id'), get_post('filterType'));
 
 //------------------------------------------------------------------------------------------------
 db_query("set @bal:=0");