manicanldes-backend/prisma/migrations/20261126110000_offline_paym...
mihir 76574a5c71
continuous-integration/drone/push Build is passing Details
feat(checkout): cash on delivery and manual UPI orders
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>
2026-11-26 15:45:45 +05:30
..
migration.sql feat(checkout): cash on delivery and manual UPI orders 2026-11-26 15:45:45 +05:30