bettersight-statement-extra.../backend
JasonFraser 17a8ef1acf Recognize currency-code-prefixed money amounts (e.g. "CA$386.01")
A CAD-denominated Equals Money statement extracted zero transactions -
every amount prints as "CA$386.01" (a currency-code prefix before the
$), which _MONEY_RE only tolerated as a bare "$". Widened the regex to
accept an optional 1-3 letter prefix, but only when immediately
followed by a literal $ - a broader letters-only version was tried and
rejected first since it would also match a plain reference code like
"REF123.45". _classify_money's own numeric parsing now strips any
remaining non-numeric characters generically rather than only "$".

Verified against the user's actual uploaded file (retrieved from
PocketBase/R2): all 3 transactions and the opening/closing balance now
extract correctly, with statement_balance/running_balance/date_sanity/
structure_sanity all passing. measure.py re-run against the full
fixture corpus, byte-identical to baseline.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-30 14:40:05 -04:00
..
repositories Move Excel exports to R2; remove dead per-extraction workbook generation 2026-10-13 07:13:20 -04:00
routes Add layout-mapper backend contract: fingerprinting + forced-mapping extraction (L.2) 2026-10-14 08:09:34 -04:00
schemas Add layout-mapper backend contract: fingerprinting + forced-mapping extraction (L.2) 2026-10-14 08:09:34 -04:00
services Recognize currency-code-prefixed money amounts (e.g. "CA$386.01") 2026-10-30 14:40:05 -04:00
app.py Move Excel exports to R2; remove dead per-extraction workbook generation 2026-10-13 07:13:20 -04:00
dependencies.py Move Excel exports to R2; remove dead per-extraction workbook generation 2026-10-13 07:13:20 -04:00
measure.py Fix edit-icon color, description autogrow, and add image zoom controls 2026-10-11 23:44:06 -04:00