public class DefaultConsignmentCancellationService extends Object implements ConsignmentCancellationService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COMMENT_SUBJECT |
| Constructor and Description |
|---|
DefaultConsignmentCancellationService() |
protected static final String COMMENT_SUBJECT
public DefaultConsignmentCancellationService()
public void processConsignmentCancellation(OrderCancelResponse orderCancelResponse)
ConsignmentCancellationServiceOrderCancelResponse. It creates cancellation events accordingly and will
trigger another sourcing if necessary
It cancels all the consignments for the given productprocessConsignmentCancellation in interface ConsignmentCancellationServiceorderCancelResponse - the order cancel responsepublic Map<AbstractOrderEntryModel,Long> cancelConsignment(ConsignmentModel consignment, OrderCancelResponse orderCancelResponse)
ConsignmentCancellationServicecancelConsignment in interface ConsignmentCancellationServiceconsignment - the consignment to cancelorderCancelResponse - the order cancel responseprotected void createCancellationEventForInternalWarehouse(ConsignmentEntryModel consignmentEntry, CancelReason myReason)
consignmentEntry - myReason - protected WarehousingCommentService<ConsignmentEntryModel> getConsignmentEntryCommentService()
public void setConsignmentEntryCommentService(WarehousingCommentService<ConsignmentEntryModel> consignmentEntryCommentService)
protected GuidKeyGenerator getGuidKeyGenerator()
public void setGuidKeyGenerator(GuidKeyGenerator guidKeyGenerator)
protected InventoryEventService getInventoryEventService()
public void setInventoryEventService(InventoryEventService inventoryEventService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected List<ConsignmentStatus> getNonCancellableConsignmentStatus()
public void setNonCancellableConsignmentStatus(List<ConsignmentStatus> nonCancellableConsignmentStatus)
Copyright © 2017 SAP SE. All Rights Reserved.