New files from unstable branch
[fa-stable.git] / inventory / includes / db / items_locations_db.inc
index b0372971441a3ca1e49d0404fb379770d7b9103f..4a12c671cc73aa60dcf45980fb8f06cb40b68399 100644 (file)
@@ -63,6 +63,15 @@ function get_item_location($item_location)
 
 //------------------------------------------------------------------------------------
 
+function get_item_locations($show_inactive)
+{
+       $sql = "SELECT * FROM ".TB_PREF."locations";
+       if (!$show_inactive) $sql .= " WHERE !inactive";
+       return db_query($sql, "could not query locations");;
+}
+
+//------------------------------------------------------------------------------------
+
 function set_reorder_level($stock_id, $loc_code, $reorder_level)
 {
        $sql = "UPDATE ".TB_PREF."loc_stock SET reorder_level = $reorder_level
@@ -83,6 +92,4 @@ function get_loc_details($stock_id)
        return db_query($sql,"an item reorder could not be retreived");
 }
 
-//------------------------------------------------------------------------------------
-
 ?>
\ No newline at end of file