More Contract stuff

This commit is contained in:
Frank Schubert
2022-12-01 22:41:44 +01:00
parent 5ccd74dc3c
commit 88dda09d66
19 changed files with 1014 additions and 186 deletions

View File

@@ -201,6 +201,13 @@ class ContractModel {
}
}
if(array_key_exists("customer_number", $filter)) {
$customer_number = $filter['customer_number'];
if(is_numeric($customer_number)) {
$where .= " AND Address.customer_number=$customer_number";
}
}
if(array_key_exists("owner", $filter)) {
$owner = FronkDB::singleton()->escape($filter["owner"]);
if($owner) {
@@ -208,6 +215,10 @@ class ContractModel {
}
}
if(array_key_exists("add-where", $filter)) {
$where .= " ".$filter['add-where'];
}
//var_dump($filter, $where);exit;
return $where;