Added trans_editor_link helper.
[fa-stable.git] / purchasing / inquiry / supplier_inquiry.php
index 94ab527597ffec00951249db3dc8488b7c4773bc..4abd00007b17a4b22ca9fe50ef11a671ff392d85 100644 (file)
@@ -20,7 +20,7 @@ include_once($path_to_root . "/reporting/includes/reporting.inc");
 $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 Inquiry"), isset($_GET['supplier_id']), false, "", $js);
 
@@ -163,11 +163,11 @@ function check_overdue($row)
 
 function edit_link($row)
 {
-       return edit_trans_link($row['type'], $row['trans_no']);
+       return trans_editor_link($row['type'], $row['trans_no']);
 }
 //------------------------------------------------------------------------------------------------
 
-$sql = get_sql_for_supplier_inquiry($_POST['filterType'], $_POST['TransAfterDate'], $_POST['TransToDate'], $_POST['supplier_id']);
+$sql = get_sql_for_supplier_inquiry(get_post('filterType'), get_post('TransAfterDate'), get_post('TransToDate'), get_post('supplier_id'));
 
 $cols = array(
                        _("Type") => array('fun'=>'systype_name', 'ord'=>''), 
@@ -203,4 +203,3 @@ display_db_pager($table);
 end_form();
 end_page();
 
-?>