Repository navigation
fix: read unmarked pence, $ after @, LTR rows and fuel amounts beside a car wash - #4
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Receipt layouts from the US, Canada, Australia and the UK that the parser misread.
11.482 G @ $3.29940.00L @ 169.9(AU, CA, GB)30.00 LTR 155.9 P/LTR00 LTR 155read as a date)LITRES 30.00/PPL 155.9FUEL 77.99/CAR WASH 8.00/TOTAL 85.99(also snacks)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) andcheck:packagepass.