added units used to Preorder

This commit is contained in:
Frank Schubert
2022-05-11 13:23:47 +02:00
parent 6e29312363
commit 11ede6a5b7
6 changed files with 61 additions and 10 deletions

View File

@@ -332,6 +332,17 @@ class OrderModel {
}
}
if(array_key_exists("building_id", $filter)) {
$building_id = $filter['building_id'];
if(is_numeric($building_id)) {
$where .= " AND Building.id=$building_id";
} elseif(is_array($building_id)) {
$where .= " AND Building.id IN (".implode(",",$building_id).")";
} elseif($building_id === null) {
$where .= " AND Building.id IS NULL";
}
}
if(array_key_exists("termination_id", $filter)) {
$termination_id = $filter['termination_id'];
if(is_numeric($termination_id)) {