When a catalog item matches a current Lübeck offer, compute its line cost from the offer instead of the hardcoded estimate: offer price is per unit (e.g. per 100 g), so multiply by the item's quantity (qtyToKg × €/kg × rate). Only weight-based offers (g/kg) are converted — units that can't be matched cleanly keep the estimate, so the total never goes garbage. Data-offer-* attrs on matched rows; recalcAll prefers the offer line price. The total (and the budget-per-day) now move toward actual prices as matches land.
46 KiB
46 KiB