ASB Developments ScotlandGeneral programming

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

InvoiceBilledPaidBalanceStatus
INV-101£250.00£250.00£0.00Paid
INV-102£180.00£75.00£105.00Part-paid
INV-103£120.00£0.00£120.00Unpaid
INV-104£95.00£100.00−£5.00Overpaid
INV-999—£42.00—Unmatched payment