Go to file
Henrik Jess Nielsen b688fa491a feat(stats): Estimeret total uses real offer prices for matched items
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.
2026-10-30 13:45:25 +01:00
2026-06-06 00:55:31 +02:00
2026-06-06 00:55:31 +02:00
2026-06-06 00:28:17 +02:00
Description
No description provided
Readme 596 KiB
Languages
HTML 70.4%
Python 24.4%
JavaScript 3.2%
HCL 1.5%
Dockerfile 0.4%
Other 0.1%