Fixed showing orders with not required termination

This commit is contained in:
Frank Schubert
2021-10-12 20:23:19 +02:00
parent 77f5931995
commit fa622a72e9
2 changed files with 7 additions and 3 deletions

View File

@@ -286,6 +286,8 @@ class OrderModel {
$termination_id = $filter['termination_id'];
if(is_numeric($termination_id)) {
$where .= " AND OrderProduct.termination_id=$termination_id";
} elseif($termination_id === null) {
$where .= " AND OrderProduct.termination_id IS NULL";
}
}