|
continuous-integration/drone/push Build is passing
Details
Checkout takes an optional paymentMethod. COD orders are confirmed and deduct stock at once; UPI_MANUAL orders hold stock for 48 hours while the customer reports a UTR and staff confirm the payment. Paid checkouts require a pricing policy so the payable total is known. Staff confirm, ship (with courier/tracking note) and deliver orders. Cancelling a confirmed order restocks it; shipped orders cannot be cancelled. Status changes are kept in an append-only history and a database trigger enforces the allowed transitions. Coupon limits now count confirmed, shipped and delivered orders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migration.sql | ||