Added product_name filter in Order/Index

This commit is contained in:
Frank Schubert
2025-12-18 15:09:54 +01:00
parent b6bd5f21b0
commit 63d19ff87c
2 changed files with 15 additions and 0 deletions

View File

@@ -358,6 +358,13 @@ class OrderModel {
$where .= " AND `Order`.name='$name'";
}
}
if(array_key_exists("product_name", $filter)) {
$product_name = FronkDB::singleton()->escape($filter['product_name']);
if($product_name) {
$where .= " AND `Product`.name LIKE '%$product_name%'";
}
}
if(array_key_exists("product_id", $filter)) {
$product_id = $filter['product_id'];