Interface ConsignmentCancellationService
-
- All Known Subinterfaces:
SapConsignmentCancellationService
- All Known Implementing Classes:
DefaultConsignmentCancellationService
,SapOmsConsignmentCancellationService
public interface ConsignmentCancellationService
Service to cancel items from consignments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<AbstractOrderEntryModel,java.lang.Long>
cancelConsignment(ConsignmentModel consignment, OrderCancelResponse orderCancelResponse)
Cancel a consignment.void
processConsignmentCancellation(OrderCancelResponse orderCancelResponse)
Cancel consignments linked to anOrderCancelResponse
.
-
-
-
Method Detail
-
processConsignmentCancellation
void processConsignmentCancellation(OrderCancelResponse orderCancelResponse)
Cancel consignments linked to anOrderCancelResponse
. It creates cancellation events accordingly and will trigger another sourcing if necessary It cancels all the consignments for the given product- Parameters:
orderCancelResponse
- the order cancel response
-
cancelConsignment
java.util.Map<AbstractOrderEntryModel,java.lang.Long> cancelConsignment(ConsignmentModel consignment, OrderCancelResponse orderCancelResponse)
Cancel a consignment. This will cancel the entire consignment and not only the quantity requested for cancellation. If there is a leftover, then another sourcing evaluation will be performed in order to define the best location for the update quantities ordered.- Parameters:
consignment
- the consignment to cancelorderCancelResponse
- the order cancel response- Returns:
- Map
-
-