fix: jam/confiture opened shelf life in fridge 60→180 days

Both PHP and JS rules for opened confettura/marmellata in
section G (fridge condiments) were returning 60 days — too short.
An opened jar of jam lasts ~6 months in the fridge.

Also: update README roadmap with comprehensive, grouped view
matching the internal memory roadmap (high/medium/low/completed).

Fixes: database.php line ~412, app.js line ~1707
This commit is contained in:
dadaloop82
2026-05-16 06:38:18 +00:00
parent 80303f7900
commit f121b8804c
3 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -1704,7 +1704,7 @@ function estimateOpenedExpiryDays(product, location) {
if (/\b(senape|mustard)\b/.test(name)) return 90;
if (/salsa\s+di\s+soia|soy\s*sauce/.test(name)) return 90;
if (/\b(tabasco|worcestershire|sriracha)\b/.test(name)) return 180;
if (/confettura|marmellata/.test(name)) return 60;
if (/confettura|marmellata/.test(name)) return 180;
if (/nutella|cioccolat/.test(name)) return 60;
// ── H: Category fallbacks ────────────────────────────────────────────