5be62cfbfd
- PHP smart_shopping: add absolute stock fallback that flags conf/pz items with <=2 units (medium) or <=1 unit (high) and g/ml at <=20% of default, regardless of usage frequency. Fixes products like Panna da cucina that are rarely used but running low and were invisible to the frequency-based urgency logic (pctLeft was 66% since last purchase was 3 at once). - JS isLowStock(): return true (not false) when totalRemaining <= 0. A fully depleted item is definitely low-stock; the Bring! add prompt should fire when you use the very last unit.