Procurement Workflow โ Overview
This is a complete, step-by-step tutorial for the advanced-tutorial app in this repository (examples/advanced-tutorial/): a runnable hospital procurement & warehouse management system built on Lesan. It is the largest in-repo Lesan application you can study โ 15 models, 63 actions, JWT authentication with role/feature-based access control, a configurable multi-step approval workflow, budget encumbrance, tendering, and store-to-store inventory tracking.
Project Layout
Before we look at any model or act, understand how the app is organized. Lesan doesn't dictate a folder structure โ this is the one the advanced-tutorial uses, and it scales well: one file per model, one folder per act, and a shared utils/ layer.
The Models
15 items
Auth & Users
11 items
Catalog
22 items
Inventory
7 items
Approval Workflow
20 items
Finance
7 items