New Address filter kundentyp

This commit is contained in:
Frank Schubert
2024-01-04 13:43:35 +01:00
parent 7acc799bd9
commit 27b2a3f081
3 changed files with 29 additions and 0 deletions

View File

@@ -232,6 +232,10 @@ class AddressModel {
$cn = $filter["customer_number"];
if(is_numeric($cn)) {
$where .= " AND customer_number=$cn";
} elseif($cn === true) {
$where .= " AND customer_number > 0";
} elseif($cn === false || $cn === null) {
$where .= " AND customer_number IS NULL";
}
}