WIP Contracts 2024-06-05
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user