All work

Sat-Raj

Billing for a fuel distributor

I built the billing system for Sat-Raj, a fuel distributor that delivers gasoline and diesel across New Jersey and Pennsylvania. It replaced the spreadsheets the office used for prices and invoices, and I still ship fixes and new features.

Role
Full-stack engineer, contract
When
Jan 2026 to now
Type
Fuel distributor, New Jersey
The office review queue from the Sat-Raj billing system, with demo data. One delivery is flagged because the gallons don't match the ticket.
50-second screen recording of the real system, running on demo data.

The problem

Prices lived in hand-edited spreadsheets. Every delivery ticket was typed twice, once into a sheet and once into QuickBooks. Drivers wrote delivery addresses by hand, so one customer could show up written many different ways, and the invoice would not match.

What I built

  1. Pricing

    Supplier prices arrive from DTN every day. The pricing engine adds each customer's margin, freight and New Jersey and Pennsylvania fuel taxes, and the daily price emails go out from the system. It had to match the old spreadsheet to the cent, so the math is pinned to the old rates in tests.

  2. Deliveries

    Delivery tickets come in from DTN and from Samsara, the GPS system on the trucks. If a truck stop doesn't clearly match a customer site, it goes to a review queue instead of being guessed.

  3. Invoices

    Approved deliveries post to QuickBooks Desktop through the Web Connector, with the right fuel and tax lines. Retries and duplicate checks mean a failed sync can't create a double invoice.

  4. Ongoing

    I own it in production. Recent work: repairing history after a terminal feed swapped gross and net gallons, adding a Top Tier additive charge, and building a payables view.

The hard part

Matching a delivery to the right customer

A delivery is only billable once the system knows which customer it went to, and drivers had typed that as free text. I fixed it in layers. Dispatch dropdowns and pre-filled forms replaced the typing. The truck's GPS position, checked against a map area drawn around each customer site, backs that up. Anything still unclear lands in the review queue for the office to decide.

Results

  • The whole office runs real invoices through it every day.
  • Nobody retypes tickets into a spreadsheet and then into QuickBooks.
  • Deliveries that don't match cleanly get reviewed, not guessed.
  • Every price sent and every invoice synced can be looked up by date and customer.

Stack

  • Next.js
  • PostgreSQL
  • AWS
  • QuickBooks
  • Samsara

Contact

Want me on your team?

uzair@uzairsaleem.dev
Role
Full-time remote. Full-stack, backend or product engineer.
Hours
US hours from Islamabad (UTC+5).
Paperwork
Employee or contractor. Deel, Payoneer or a wire all work.
Start
Available now.