bettersight-statement-extra.../backend/services
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
..
extraction Recognize currency-code-prefixed money amounts (e.g. "CA$386.01") 2026-10-30 14:40:05 -04:00
__init__.py Fix edit-icon color, description autogrow, and add image zoom controls 2026-10-11 23:44:06 -04:00
checks_service.py Fix edit-icon color, description autogrow, and add image zoom controls 2026-10-11 23:44:06 -04:00
excel_service.py Add review screen R.5: edit log, acknowledge/accept workflow, Excel Edits sheet 2026-10-13 20:41:13 -04:00
extraction_service.py Add the Layouts page, drift detection on every recheck, and fix two real persistence bugs (L.7) 2026-10-15 05:03:20 -04:00
pipeline_service.py Add layout-mapper backend contract: fingerprinting + forced-mapping extraction (L.2) 2026-10-14 08:09:34 -04:00
suggested_fixes_service.py Add the suggested-fix engine for running-balance mismatches (R.3) 2026-10-13 16:09:16 -04:00