woodshop/tests
rob 28ca8ee338 Mark purchased: scan a receipt to fill actual prices
The Mark-purchased dialog gains a "Scan receipt…" button: attach a receipt
photo/PDF and the model reads it, fills the unit price each item actually cost,
and offers to save those to the price book — so inventory spend and future
estimates reflect what you really paid.

- driver.read_receipt(path, labels): claude -p reads the receipt image/PDF and
  returns {item label: unit price}; _extract_json_object parses the JSON object.
- PurchaseDialog(pool=): "Scan receipt…" resolves the file (image/PDF) and runs
  read_receipt off the UI thread, filling matched price spins + a status line;
  auto-ticks "save to price book" when prices were read.
- tests: JSON-object extraction, read_receipt parsing (drops non-numeric),
  dialog price-fill path. 230 pass.

Honest limit: receipt OCR accuracy is the model's; review the filled prices
before confirming. Live read needs your machine.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 23:47:00 -03:00
..
test_bom_window.py Mark purchased: scan a receipt to fill actual prices 2026-05-30 23:47:00 -03:00
test_command_bar.py Multi-image reference + render-feedback "Match photo" self-correction 2026-05-30 23:25:13 -03:00
test_cutlist.py Unify CLI/voice cut list onto the CutPlan (single source of truth) 2026-05-30 22:06:49 -03:00
test_cutplan.py Fix material/inventory boundary + offcut-preservation (Codex review) 2026-05-30 20:01:23 -03:00
test_driver.py Mark purchased: scan a receipt to fill actual prices 2026-05-30 23:47:00 -03:00
test_estimate.py Phase 2: finish costs by kind in the estimate 2026-05-30 19:04:44 -03:00
test_gen_tools.py Portability + consistency polish (Codex review) 2026-05-30 21:56:28 -03:00
test_geometry.py Add auto-assembly (Make connection) + feature rotation 2026-05-29 17:15:51 -03:00
test_gui_controller.py Multi-image reference + render-feedback "Match photo" self-correction 2026-05-30 23:25:13 -03:00
test_instructions.py Phase 2: structured build instructions (deterministic + optional AI polish) 2026-05-30 14:36:50 -03:00
test_inventory.py Fix material/inventory boundary + offcut-preservation (Codex review) 2026-05-30 20:01:23 -03:00
test_inventory_window.py Phase 7: shop Inventory window + stats 2026-05-30 19:25:28 -03:00
test_jigs.py Address shop-packet review (consistency, determinism, validation, jigs) 2026-05-30 15:11:02 -03:00
test_layout.py BOM window: tabs + cut-layout nesting + print (phase 1 of shop output) 2026-05-30 13:07:49 -03:00
test_materials.py Phase 1: material + finish fields + color resolver 2026-05-30 19:01:28 -03:00
test_prices.py Material-aware pricing: oak ≠ pine 2026-05-30 19:48:26 -03:00
test_scene.py Phase 1: material + finish fields + color resolver 2026-05-30 19:01:28 -03:00