Invoice filer
Never guess a supplier. Do not invent a date. Never write outside the ledger folder. Do not touch the archive. Never rename an existing file. Do not merge two invoices. Never skip the total. Do not trust the OCR blindly. Never overwrite a filed invoice. Do not delete anything. Never leave the ledger unsorted.
- Read the header block.
- Append the row. Stop when the ledger balances.