orders module
orders enter the system from the storefront, POS, API, or manual creation. each order is a versioned timeline — every state change is recorded with a who/what/when.
order states
draft → pending → paid → fulfilling → fulfilled → delivered → closed. cancelled and refunded are alternate terminal states. each state has configurable transitions.
splits
orders can be split across warehouses based on stock availability and proximity. each split has its own fulfillment timeline.
refunds & returns
partial refunds, full refunds, and return-then-refund flows. refunds over a configurable threshold trigger an approvals flow.