Inventario Materia Prima Client system
Raw-material inventory for a bread factory
Real-time stock across the factory's warehouses: purchase entries with VAT per line, validated exits, physical counts, voiding with automatic reversal, a full audit trail and branded Excel and PDF reports.
- Two units per product — how it's bought and how it's counted — with conversion factors, plus weight-based items deducted by the kilo.
- Five roles from admin to read-only viewer; admin fixes to past counts apply as deltas so later movements stay intact.
- Warehouses are data: admins create them from the UI, each with its own color palette and per-user access.


The brief
Flour, butter, packaging and everything in between live in two warehouses — bakery and pastry. Entries arrive with supplier invoices; exits go to production, packaging or the point of sale.
The system had to be quick to operate on a tablet, strict about stock, and transparent about every correction.
What I built
- Current stock with Normal / Low / Critical states and per-product history
- Purchase entries with mandatory invoice number, VAT per line and an edit audit
- Exits validated against available stock before they're saved
- Adjustment batches from physical counts: system → physical → difference
- Report catalog with quick periods and Excel/PDF exports with the company letterhead
- Printable blank count sheets and exit forms for manual capture
Under the hood
Voiding is a movement, not a delete
Canceling an entry or an exit writes its reversal and restores stock, so history stays complete.
Corrections as deltas
Fixing a mistyped physical count applies the difference and syncs its movement instead of overwriting the stock, so later entries and exits survive.
SQLite in development, Turso in production
One Drizzle schema: a local file while building, libSQL at the edge in production.
Seeded with the real catalog
168 real raw materials were loaded at setup, so the team started from their own product list, not an empty screen.
Gallery





Where it stands
Deployed on Vercel with Turso and documented in a user manual for the warehouse team. Version 2 added warehouses created from the UI and per-user access.
Screens come from the system's user manual, captured with demo data.