Skip to content

fix: read unmarked pence, $ after @, LTR rows and fuel amounts beside a car wash - #4

Merged
rsoaresdev merged 1 commit into
mainfrom
fix/unmarked-prices-and-fuel-amount
Nov 1, 2026
Merged

rsoaresdev merged 1 commit into
mainfrom
fix/unmarked-prices-and-fuel-amount

Conversation

@rsoaresdev

Copy link
Copy Markdown
Owner

Receipt layouts from the US, Canada, Australia and the UK that the parser misread.

Receipt Before After
11.482 G @ $3.299 price lost 3.299, checked
40.00L @ 169.9 (AU, CA, GB) 169.9 per litre, unchecked 1.699, checked (kept as 169.9 when that does not close)
30.00 LTR 155.9 P/LTR quantity lost (00 LTR 155 read as a date) 30 L at 1.559, checked
LITRES 30.00 / PPL 155.9 price lost 1.559, checked
FUEL 77.99 / CAR WASH 8.00 / TOTAL 85.99 (also snacks) total includes the wash, unchecked the fuel amount 77.99 checks the fuel

The unmarked hundredths price is an implied reading: it is only believed when it closes the sum, so the printed number still wins otherwise.

npm run lint, typecheck, coverage (265 tests) and check:package pass.

… a car wash

- `11.482 G @ $3.299`: a currency mark between @ and the price no longer loses the price.
- `40.00L @ 169.9`: pence or cents with no mark are read as 1.699 when that closes the sum.
- `30.00 LTR 155.9 P/LTR`: the quantity is no longer swallowed as a date.
- `PPL 155.9`: a pence mark heading the price is read as the price per litre.
- `FUEL 77.98` beside `CAR WASH 8.00`: the fuel's own amount checks the fuel when the total does not.
@rsoaresdev
rsoaresdev merged commit cbd305a into main Nov 1, 2026
6 checks passed
@rsoaresdev
rsoaresdev deleted the fix/unmarked-prices-and-fuel-amount branch November 1, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant