Fluent Commerce Logo
Sign In

Extended Component To Handle Order Item Cancellation

How-to Guide
Extend

Author:

Nandha Balaguru

Changed on:

12 June 2025

Key Points

  • Supports full or partial cancellation of order line items based on remaining quantity.
  • Extended UI component enforces cancellation reason and visualises cancellable quantity.
  • Rule/Rule set updates to cancelledQuantity are required but not covered in this document.

Steps

Step arrow right iconUse Case

Enable OMS users to cancel an order line item either partially or fully through the Order entity. This includes the ability to perform multiple cancellations on the same line item, restricted by the remaining cancellable quantity.

Step arrow right iconSolution Approach

UI Enhancements

  • Extend the existing UI component to:
    • Provide better visualization of the order line item cancellation status.
    • Offer functionality to cancel order line items, either fully or partially.
  • This extended UI component reads the
    `cancelledQuantity`
    attribute from each order line item.
  • Based on the value, the UI dynamically calculates and presents only the remaining quantity available for cancellation.
  • Users can cancel the same line item multiple times, provided there is remaining quantity.


Mandatory Cancellation Reason

  • When a user selects a line item for cancellation, a cancellation reason must be provided.
  • If the cancellation reason is not specified, the cancellation operation cannot be submitted or processed.


Extensibility

  • All of the above behaviours can be customised.
  • The UI component can be downloaded and extended further to meet specific client requirements

Results

No alt providedNo alt providedNo alt provided

Step arrow right iconRelated sources