Invoice Reconciler
A dependency-free Python tool that matches payments to invoices and shows where the figures differ.
Run the example
With Python 3 installed, open a terminal in the general-programming folder and run:
python3 reconcile.py invoices.csv payments.csv > report.csv
On Windows, use py -3 in place of python3.
Expected findings
| Invoice | Billed | Paid | Balance | Status |
|---|---|---|---|---|
| INV-101 | £250.00 | £250.00 | £0.00 | Paid |
| INV-102 | £180.00 | £75.00 | £105.00 | Part-paid |
| INV-103 | £120.00 | £0.00 | £120.00 | Unpaid |
| INV-104 | £95.00 | £100.00 | −£5.00 | Overpaid |
| INV-999 | — | £42.00 | — | Unmatched payment |