projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added confirmation js dialogs for deleting and restoring backup file.
[fa-stable.git]
/
manufacturing
/
includes
/
db
/
work_centres_db.inc
diff --git
a/manufacturing/includes/db/work_centres_db.inc
b/manufacturing/includes/db/work_centres_db.inc
index c01ad50f410e4987fe7c6705bcb55ed02897ef8b..e1b8a023a63b112ef8b85a85dba71253f83cf3f2 100644
(file)
--- a/
manufacturing/includes/db/work_centres_db.inc
+++ b/
manufacturing/includes/db/work_centres_db.inc
@@
-25,9
+25,10
@@
function update_work_centre($type_id, $name, $description)
db_query($sql, "could not update work centre");
}
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";
{
$sql = "SELECT * FROM ".TB_PREF."workcentres";
+ if (!$all) $sql .= " WHERE !inactive";
return db_query($sql, "could not get all work centres");
}
return db_query($sql, "could not get all work centres");
}