Reserve before dispatch
Online orders create stock reservations. Physical stock is decremented at dispatch, and cancellation releases a reservation.
The tradeoff
Reservation and dispatch operations must remain atomic under concurrent orders.
One retail system, from the online bag to the shop counter.
Online orders, in-store sales, reserved inventory and cash on delivery have different lifecycles. Treating them as a single status would hide important operational details.
Online orders create stock reservations. Physical stock is decremented at dispatch, and cancellation releases a reservation.
Reservation and dispatch operations must remain atomic under concurrent orders.
A delivered cash-on-delivery order remains unpaid until staff explicitly confirm collection.
Staff need separate views of fulfillment and cash collection.
POS sessions track opening cash, sales, cash movement, refunds and closing reconciliation. Returns distinguish restock from damaged goods.
Physical inspection and cash confirmation remain staff responsibilities.
A documented retail backend spanning online orders, POS, inventory reservation, returns and cash reconciliation.
Bun · PostgreSQL · Next.js
Based on the project implementation and documentation. Tradeoffs explain the implications of these choices; no measured business results or client feedback are claimed.
Ready to turn your vision into production-grade software? Let's start the conversation.
Start Your Project