Sistema OH Belleza
Every lot, every córdoba.
A desktop system for a beauty products distributor: lot-based inventory, invoicing, consignment and receivables on its local network.

The problem
The distributor sells several brands to salons and resellers, with sales agents who carry consignment stock and collect on their routes. Inventory, invoices and collections lived in paper forms and Excel, with no control over expiry dates or what each customer or agent owed.
What I built
- Lot-based inventory with strict FIFO dispatch, physical warehouses and a virtual one per agent, transfers, quarantine returns, a valued stock ledger and expiry alerts.
- Invoicing terminal with price lists, bundles, controlled discounts and negative-stock blocking enforced by the backend.
- Accounts receivable: receipts, advances, payment agreements, credit and debit notes, aging and portfolio closings.
- Cash reconciliations per sales agent, across several portfolios, with deposit matching and commission calculation.
- Management dashboard for sales, receivables and inventory, plus PDF/Excel reports.
- Four roles with strict permissions, passkey sign-in and a verified import of historical receivables.
More screens



How it works
- An invoice consumes stock by lot, oldest first.
- Consignment stock leaves the agent’s virtual warehouse.
- A credit invoice opens the customer’s receivable.
- The agent’s receipts are matched in a cash reconciliation.
- The reconciliation reduces the debt and computes the commission.
Engineering decisions
Local network, not cloud
The client works from its office. An Ubuntu server with Coolify runs the API and PostgreSQL, and each PC uses a Windows installer. Invoicing does not depend on the internet.
Rules live in the backend
Negative stock, role permissions and locked descriptions are enforced by the API, not just the interface, so no client can bypass them.
Migrating without losing history
Historical receivables were imported with row-level validation, normalization and a final verification, so balances matched the client’s own records from day one.
Results and evidence
Backend and desktop app with more than 180 Vitest test files, a 68-entity data model and more than 380 commits since March 2026. Deployed on the client’s local network with manuals and training for the receivables team.
Scope and learnings
This is client code: the repository is private. Screenshots come from the real system with fictional data; customer and agent names are invented.