Cancel Shipment

Explanation

This activity is designed to allow users to cancel a shipment or a consolidated shipment. In addition, this acitivity involves changing the status of a shipment to Cancelled and managing its connection to any associated consolidated shipment.

When canceling a shipment from its header, the shipment will enter the Canceled state. If the shipment is connected to a consolidated shipment, it will be disconnected upon cancellation. This ensures that the cancellation of an individual shipment does not affect the integrity of the consolidated shipment, maintaining the separation of individual and consolidated shipment statuses.

In scenarios where all individual shipments connected to a consolidated shipment are canceled and the loading indicator is Not Started, the system will automatically cancel the consolidated shipment. This automation facilitates efficient management of consolidated shipments, ensuring that they are only canceled when all their associated shipments are no longer active.

However, if all individual shipments connected to a consolidated shipment are canceled and the consolidated shipment is in the Completed state, the system will prevent auto-cancelation. In this case, the status of the consolidated shipment will remain Completed. This prevents the inadvertent cancelation of shipments that have already been marked as completed, preserving the accuracy of shipment records.

Prerequisites

System Effects