Skip to content
ANB Codes

Business system

Sales and accounts system for a cookware distributor

We built the system a cookware dealer uses to invoice retail shops, collect payments, buy stock and keep every ledger in balance.

Client
Cookware distributor
Industry
Retail and wholesale
Platform
Web app, phone first
Documents
PDF on letterhead

The real screen, with the client's company name, logo, address and contact details hidden, and customer details replaced with samples.Why?

The problem

Trade discounts were chained by category and worked out by hand, payments from many shops arrived together, corrections left balances that no longer added up, and stock could fall below zero unnoticed. The owner also works mostly from a phone.

What we built

We built a phone-first system on ledgers that are never overwritten. Invoices apply category-wise chained discounts, edits and deletes post reversals, and purchases carry the supplier's commission into a weighted-average cost. Invoices, delivery challans, statements and every report are real PDFs on the company letterhead, and each staff login sees and edits only the pages it is given, enforced in the database.

Inside the build

What we made, in detail

  • Invoices with chained category discounts
  • Batch payments from many customers
  • Purchases with commission and average cost
  • Customer and supplier ledgers in one tap
  • PDF invoices, challans and statements
  • Profit, stock valuation and stock ledger reports
  • No sale above stock, with count alerts
  • Opening dues and advances for existing accounts

What changed

  • Books balance after every edit and delete
  • Every figure checked by live reconciliation
  • Run day to day from a phone

Technology

  • Next.js
  • React
  • Supabase
  • PostgreSQL
  • Puppeteer

More work

Similar work in production

Want something like this?

Share the problem in a few lines. After one call you'll get a written scope and a fixed quote within 48 hours.