1.18 cleanup and review

This commit is contained in:
ben
2026-03-24 08:27:41 -04:00
parent 02be6f52c0
commit de8ff535b8
2 changed files with 67 additions and 4 deletions

View File

@@ -962,7 +962,7 @@ Costco 25# FLOUR not parsed into normalized weight - meaure_type says each
** notes
- Costco `25#` weight text was falling through to `each` because the hash-size parser missed sizes followed by whitespace.
- This fix is intentionally narrow: explicit `#`-weight parsing now feeds the existing quantity and effective-price flow without changing `normalized_item_id` behavior.
* [X] t1.18.4: clean purchases output and finalize effective price fields (2-4 commits)
make `purchases.csv` easier to inspect and ensure price fields support weighted cost analysis
@@ -995,7 +995,7 @@ make `purchases.csv` easier to inspect and ensure price fields support weighted
** notes
- `purchases.csv` now carries a filled `net_line_total` for every row, preserving existing values from normalization and deriving the rest from `line_total` plus matched discounts.
- `effective_price_unit` now mirrors the normalized quantity basis, so downstream analysis can tell whether an `effective_price` is per `lb`, `oz`, `count`, or `each`.
* [X] t1.19: make review_products.py robust to orphaned and incomplete catalog links (2-4 commits)
refresh review state from the current normalized universe so missing or broken links re-enter review instead of silently disappearing
@@ -1048,7 +1048,6 @@ ensure purchases retains enough visit/order context to support spend-by-visit an
- datetime:
** notes
* [ ] t1.21: add lightweight charting/analysis surface on top of purchases.csv (2-4 commits)
build a minimal analysis layer for common price and visit charts without changing the csv pipeline