Project file · gold-accounting
Gold Shop Accounting
Ongoing2026Internal system
Executive summary
A gold shop does not sell a fixed-price item: it sells a weight at a karat, at today's price. This system records every transaction with those three, and reads stock, invoices and reports from the same entry.
Context and challenge
A system of its own with its own database (PostgreSQL on Supabase): no spreadsheet and no Google Sheets automation. Sales and purchases are recorded by weight, karat and price, stock is tracked, and invoices are issued — with no public copy online.
Gold is not counted in pieces: the weight varies, the karat sets the value, and the price moves every day. When the sale is written in a notebook and the weight in another file, reconciling stock against the books becomes manual work at the end of every day — and the error surfaces once it is already old.
The approach
- 01
One entry per transaction: weight, karat, price and customer on a single line.
- 02
Stock is read from the entries — never written twice, never reconciled by hand.
- 03
The invoice and the report come out of the same data recorded at the counter.
What we built
- 01
Sales and purchases recorded by weight, karat and price
- 02
Stock tracking
- 03
Invoices and reports for the shop
Outcome and status
Running at the shop, with final delivery in November 2026. The earlier version was a Google Sheets and Apps Script automation; this is a second, self-contained system.