multiple receipts in a trip
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user