OTC auf Produkt-ID umstellen

This commit is contained in:
2026-06-15 14:05:29 +02:00
parent 82387690dc
commit fb812e147e
3 changed files with 24 additions and 20 deletions
+1 -9
View File
@@ -35,15 +35,7 @@ function get_otc_order_form_products(PDO $pdo): array
WHERE p.status = 'active'
GROUP BY p.id, p.name
HAVING COALESCE(SUM(v.qty_net), 0) > 0
ORDER BY
CASE
WHEN p.name ILIKE '%shiitake%' THEN 1
WHEN p.name ILIKE '%reishi%' THEN 2
WHEN p.name ILIKE '%lion''s mane%' THEN 3
WHEN p.name ILIKE '%chaga%' THEN 4
ELSE 99
END,
p.id ASC"
ORDER BY p.id ASC"
);
$products = [];