$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(900, 500);
-if ($use_date_picker)
+if (user_use_date_picker())
$js .= get_js_date_picker();
page(_($help_context = "Supplier Allocation Inquiry"), false, false, "", $js);
}
//------------------------------------------------------------------------------------------------
-$sql = get_sql_for_supplier_allocation_inquiry();
+$sql = get_sql_for_supplier_allocation_inquiry($_POST['TransAfterDate'],$_POST['TransToDate'],
+ $_POST['filterType'], $_POST['supplier_id'], check_value('showSettled'));
$cols = array(
_("Type") => array('fun'=>'systype_name'),