James Feeney

Tool · in use at Vacuums and More

Sales reporting

Excel and PDF sales reports from three stores' point of sale, accurate to the penny

2
stores' point of sale accounts, pulled and merged
Excel + PDF
a weekly or any-range workbook, plus snapshot, year over year, store comparison and monthly trends reports
Exact
to the cent: payments split across items always add back up to the total

The reports, with sample data

Real PDFs from the tool, run on two made-up stores, Riverside and Hillcrest. The code and the rules are the ones behind the owner's reports. Only the sales are invented, and every page says so. Open one to read every page.

The problem

The owner wanted to know how each store did last week. The point of sale had the data, but not the answer: orders, payments and refunds lived in separate places, across two accounts.

What I built

A command-line tool that pulls orders, payments and refunds from all three stores' Clover accounts and builds an Excel workbook plus four PDF reports: snapshot, year over year, store comparison and monthly trends.

The hard parts were the quiet ones. It handles API paging and rate limits, picks up refunds made against earlier days' sales, and splits payments across items exactly to the cent, so the parts always add back up to the total.

The result

Reports the owner reads, with totals that tie back to the Clover terminal and a golden-output test that guards every change. The test data is synthetic, so no real sales data ever goes into the repository.

The sample reports above come from the same code. A script swaps the Clover connection for two invented stores, then reads every PDF back and refuses to finish if a real name turns up.