Feature #11548
openFeature #11355: Cancellation process for online orders
Fix and Optimize Order Cancellation, Inventory Restocking, and Warehouse Fulfillment Flow
100%
Description
Simplify cancellation approval into a single action to approve, cancel products, restore stock, and process refunds.
Display cancellation approval, stock, refund, and warehouse statuses in one place.
Fix warehouse picking and packing to include only active, non-cancelled products.
Exclude cancelled products from shipping labels, packages, warehouse notifications, and undelivered counts.
Hide fully cancelled orders from active warehouse packing.
Automatically restore cancelled product quantities to available stock.
Fix stock restoration for product variants, reserved inventory, and products with or without stock batches.
Prevent duplicate stock restoration using idempotency and stock journal validation.
Add retry and recovery handling for failed or incomplete stock restoration.
Ensure products already collected by the delivery partner are restocked only after return and inspection.
Fix normal card orders so stock is deducted after successful payment confirmation.
Ensure Stripe webhooks and the payment success page cannot deduct stock twice.
Handle stock deduction failures with safe retries and proper error logging.
Preserve existing Cash and Zelle stock deduction behavior.
Review and improve Stripe refund retry and reconciliation handling.
Review refund handling for Cash and Zelle orders.
Review pre-order and legacy-order cancellation and stock restoration issues.
Review customer cancellation notifications, request withdrawal, and partial-quantity cancellation support.
Fix order locks after interrupted cancellation execution and consolidate duplicate cancellation endpoints.
Add backend tests for cancellation requests, approvals, refunds, stock restoration, payment confirmation, retries, and failure scenarios.
Perform end-to-end testing of the complete cancellation, inventory, payment, and warehouse fulfillment flow.
Document all completed fixes, remaining issues, and pending improvements.
Subtasks
Related issues
Updated by Pavan Kumar Murala 7 days ago
- Status changed from New to In Progress
- Target version set to sprint (10/12/2026 - 10/31/2026)
Updated by Pavan Kumar Murala 6 days ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Review existing cancellation, inventory, warehouse, and Stripe payment workflows.
Identify existing issues and fix important edge cases.
Exclude cancelled products from warehouse packing and shipping while keeping order history.
Implement a single cancellation approval and rejection workflow with status tracking.
Prevent duplicate cancellation processing and support safe retries.
Restore product and variant stock correctly when orders are cancelled.
Ensure Stripe payments trigger stock deduction correctly without duplicate updates.
Keep existing cash and Zelle inventory behaviour unchanged.
Keep cancellation, refund, stock, and warehouse statuses consistent.
Add refund retry support, cash and Zelle refund handling, and cancellation email notifications.
Support partial-quantity cancellations.
Add backend tests for cancellations, inventory, payments, and refunds.