Added confirmation js dialogs for deleting and restoring backup file.
[fa-stable.git] / manufacturing / includes / db / work_centres_db.inc
index c01ad50f410e4987fe7c6705bcb55ed02897ef8b..e1b8a023a63b112ef8b85a85dba71253f83cf3f2 100644 (file)
@@ -25,9 +25,10 @@ function update_work_centre($type_id, $name, $description)
        db_query($sql, "could not update work centre");
 }
 
-function get_all_work_centres()
+function get_all_work_centres($all=false)
 {
        $sql = "SELECT * FROM ".TB_PREF."workcentres";
+       if (!$all) $sql .= " WHERE !inactive";
 
        return db_query($sql, "could not get all work centres");
 }