Added FCPs to TheToolAdded WarehouseOffer and WarehouseOfferTemplate, also fixed menu for Lager Point
This commit is contained in:
@@ -1006,6 +1006,17 @@ class PreorderModel
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($filter['fcp'])) {
|
||||
$fcp = $filter['fcp'];
|
||||
$db = FronkDB::singleton();
|
||||
if (is_array($fcp)) {
|
||||
$items = array_map(fn($i) => "'" . $db->escape($i) . "'", array_filter($fcp));
|
||||
if ($items) $where .= " AND adb_hausnummer.rimo_fcp_name IN (" . implode(',', $items) . ")";
|
||||
} else {
|
||||
$where .= " AND adb_hausnummer.rimo_fcp_name = '" . $db->escape($fcp) . "'";
|
||||
}
|
||||
}
|
||||
|
||||
// custom where clause
|
||||
if (array_key_exists("add-where", $filter)) {
|
||||
$where .= " " . $filter['add-where'];
|
||||
|
||||
Reference in New Issue
Block a user