Role-based access
Admin and Salesperson roles enforced in the database with Row-Level Security and a security-definer is_admin() check.



IDEAXProject Delivery Blueprint · SaaS Platform — Web & Mobile

Scope Description
Tech Stack
The Challenge
Trimzo's salespeople were billing shopkeepers by hand. The brief: one platform where admins plan the week, salespeople raise a proper invoice at the shop counter in under a minute, and every sale instantly updates stock, customer balances and the dashboard.
Workflow
How a sale moves through the platform — from the admin's weekly plan to the shopkeeper's phone.
Admin manages the fixed product list and box prices, records stock-in and free samples, and adds, activates or deactivates salespeople.
Each salesperson gets an area for every day of the week (Mon–Sun), so the field team always knows where to go.
Role-based login sends salespeople straight to their dashboard — today's route card, invoice count and recent invoices.
Enter shopkeeper details and snap a photo of the shop, pick products from a dropdown — box price auto-fills — and enter quantity in boxes. The bill summary updates live.
On save, a database function normalises the Pakistani mobile number, links the invoice to an existing customer or creates a new one, and issues the next sequential invoice number.
A branded PDF invoice is generated on the phone and shared with the shopkeeper on WhatsApp in one tap.
Current stock is calculated as stock-in − sold − samples, and customer balances are derived from invoices — never stored twice, so the numbers can't drift.
The admin dashboard shows summary cards, a revenue chart, a salesperson leaderboard, low-stock alerts, outstanding customers and full customer records.
Core Modules
Admin and Salesperson roles enforced in the database with Row-Level Security and a security-definer is_admin() check.
Sequential invoice numbers, PKR formatting, Pakistani mobile validation and box-based quantities.
Every bill becomes a clean PDF that the salesperson shares with the shopkeeper on WhatsApp.
Fixed product catalogue with stock-in, free samples and sold units — stock is always calculated, never guessed.
A weekly area plan per salesperson, surfaced as a "today's route" card on their dashboard.
Searchable shopkeeper records with shop photos, scoped by role, linked automatically by phone number.
Revenue chart, leaderboard, low-stock alerts and outstanding balances in one dashboard.
Asia/Karachi timezone, PKR currency and local phone formats throughout.
Architecture
Deployed web app
Android via EAS Build
Supabase
Data model
Contact IdeaX Dubai to create a similar custom software or luxury storefront optimized for your business.