WIP Contracts 2024-06-05

This commit is contained in:
Frank Schubert
2024-06-05 16:26:19 +02:00
parent 2855a45208
commit 51d2f7717a
5 changed files with 104 additions and 43 deletions

View File

@@ -467,6 +467,22 @@ class ContractModel {
$where .= " AND Contract.price >= $price";
}
}
if(array_key_exists("billing_period", $filter)) {
$billing_period = $filter['billing_period'];
if(is_numeric($billing_period)) {
$where .= " AND Contract.billing_period=$billing_period";
}
}
if(array_key_exists("finish_date>", $filter)) {
$finish_date = $filter['finish_date>'];
if(is_numeric($finish_date)) {
$where .= " AND Contract.finish_date >= $finish_date";
}
}
if(array_key_exists("add-where", $filter)) {
$where .= " ".$filter['add-where'];