Estokka
Inventory and invoicing
Barcode stock control across shops and a depot, low-stock alerts with purchase suggestions, and numbered PDF invoices in one click.
Concept project · fictional brand and sample dataApp in Portuguese
- 23
- automated tests passing
- 78 ms
- p95 response time per barcode scan over HTTP
- 3
- stock locations in the demo: 2 shops and 1 depot
- 67
- scans per second with 4 concurrent clients
The brief
A small hardware store with two shops and a depot keeps its stock on spreadsheets. Counts drift, nobody notices a best-seller running out until a customer asks for it, and invoices are typed by hand with numbers that skip or repeat.
What I built
- Scanner station that works with any USB or Bluetooth barcode reader and lowers stock the moment a code is read
- Stock per product and warehouse, each with its own minimum, plus transfers between locations
- Low-stock alert as soon as a balance hits its minimum, with a purchase suggestion based on 30 days of demand
- Reorder suggestions grouped by supplier with the estimated order cost; one click books the delivery
- Quotes and invoices with gapless yearly numbering, stock taken out atomically and a branded PDF
- Every movement kept in a read-only ledger with user, channel and reason, exportable to CSV
- Reports on stock value, best sellers and movements over 7, 30 or 90 days
The decision that mattered
One write path for every stock change
Scanner, manual form, invoice, cancellation and purchase receipt all go through the same function, which locks the affected balances, refuses negative stock and writes a ledger line with the resulting balance. Ledger rows can't be edited or deleted, so a mistake is fixed with an adjustment that records a reason and a user. That single path is what makes the audit trail and the gapless invoice numbers trustworthy.