X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_locations_db.inc;h=4a12c671cc73aa60dcf45980fb8f06cb40b68399;hb=46c5f7a65a7659a44ae8254c63152074363d3987;hp=b0372971441a3ca1e49d0404fb379770d7b9103f;hpb=35f482e2a9246960de37e5f1d975c734e08951e6;p=fa-stable.git diff --git a/inventory/includes/db/items_locations_db.inc b/inventory/includes/db/items_locations_db.inc index b0372971..4a12c671 100644 --- a/inventory/includes/db/items_locations_db.inc +++ b/inventory/includes/db/items_locations_db.inc @@ -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