Anti-waste: themed border, rich info badges, fix latte di montagna shelf-life, exclude opened from expiring_soon

This commit is contained in:
dadaloop82
2026-04-29 06:19:35 +00:00
parent 0f247a3132
commit 7c4dd99289
7 changed files with 73 additions and 18 deletions
+1
View File
@@ -1529,6 +1529,7 @@ function getStats(PDO $db): void {
COALESCE(i.vacuum_sealed, 0) as vacuum_sealed
FROM inventory i JOIN products p ON i.product_id = p.id
WHERE i.expiry_date IS NOT NULL AND i.expiry_date >= date('now') AND i.quantity > 0
AND (i.opened_at IS NULL OR i.opened_at = '')
ORDER BY i.expiry_date ASC
LIMIT 4
")->fetchAll();