projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed language modules locale.inc integration.
[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 31736af58b70e6ff23794098e1b7ca5b2e507dc3..1d15d7c2882368bec063416a800667acc768a029 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");
}
@@
-48,4
+49,3
@@
function delete_work_centre($type_id)
db_query($sql, "could not delete work centre");
}
db_query($sql, "could not delete work centre");
}
-?>
\ No newline at end of file