multiple receipts in a trip

This commit is contained in:
davmar
2026-09-03 15:09:17 +02:00
parent ae42ba8193
commit 8b040e83c0
6 changed files with 409 additions and 52 deletions
+13
View File
@@ -154,6 +154,19 @@ Bedr.Incl 2,09
expect(items, hasLength(26));
});
test('does not treat CHIPS as payment keyword CHIP', () {
final items = ReceiptParser.parse('''
AH Protein
AH Chips
1,49
0.69
''');
expect(items, hasLength(2));
expect(items.map((item) => item.name), ['AH Protein', 'AH Chips']);
expect(items.map((item) => item.price), [1.49, 0.69]);
});
test('scan path uses column parser for Jumbo name-then-price OCR dump', () {
const ocr = '''
BIO VASTKOKEND AARD