Case study
Grain inventory & merchant trading system
Store-scoped trading and inventory platform for grain merchants — warehouses, purchases, partial GRNs, sales with COGS, stock movements, OTP security, and dual web + JWT API access.

Product overview — full frame
01 — Challenge
02 — Goals
03 — Signals
Measured strengths across delivery, innovation, and operational maturity.
Trading-grade
Domain depth
JWT dual access
API readiness
OTP + approval
Security posture
CI SSH
Deploy automation
04 — System design
Shared domain layer serving Django templates and DRF/JWT APIs. Multi-tenant by Store with approval workflow before portal use.
05 — Stack
Production tools powering this product — icons for quick recognition.
06 — Capabilities
Multi-warehouse stock with movement audit
Purchase receipts (partial GRNs) & sales dispatch
Average cost / unit_cost_at_sale for COGS
Session web auth + JWT API
ReportLab PDFs and dark/light UI
07 — Deep dive
| Flow | Models | Outcome |
|---|---|---|
| Inbound | Purchase → Receipt items | Partial GRNs update stock |
| Outbound | Sale → Dispatch items | Partial fulfillments |
| Audit | StockMovement | Purchase/sale/transfer/adjust |
| Costing | avg cost + unit_cost_at_sale | Reliable COGS |
08 — Outcomes
One operational system for stock and billing
COGS-aware sales and movement audit
Structured for multi-store SaaS and mobile clients
Closing note
Production grain inventory platform that replaces spreadsheet chaos with warehouse-aware trading workflows and API extensibility.