public class DefaultOmsOrderCancelService extends Object implements OmsOrderCancelService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COMMENT_SUBJECT |
| Constructor and Description |
|---|
DefaultOmsOrderCancelService() |
| Modifier and Type | Method and Description |
|---|---|
protected List<OmsUnallocatedCancellationRemainder> |
cancelUnallocatedQuantities(List<OrderEntryCancelRecordEntryModel> orderEntryCancellationRecords)
Cancels unallocated quantities based on each entry's requested cancel quantity.
|
protected void |
checkIncomingCancellationRecordsMatchOrderEntries(OrderModel order,
List<OrderEntryCancelRecordEntryModel> orderEntryCancellationRecords)
Checks that the order entry cancellation records are linked to the proper order entries.
|
protected List<OrderCancelEntry> |
extractCancellationEntriesForAllocatedQuantities(List<OmsUnallocatedCancellationRemainder> unallocatedCancellationRemainders)
Extracts a list of
OrderCancelEntry corresponding to the requested quantity to cancel. |
protected GuidKeyGenerator |
getGuidKeyGenerator() |
protected ModelService |
getModelService() |
protected WarehousingCommentService<AbstractOrderEntryModel> |
getOrderEntryCommentService() |
List<OrderCancelEntry> |
processOrderCancel(OrderCancelRecordEntryModel orderCancelRecordEntryModel)
process order cancellation
|
void |
setGuidKeyGenerator(GuidKeyGenerator guidKeyGenerator) |
void |
setModelService(ModelService modelService) |
void |
setOrderEntryCommentService(WarehousingCommentService<AbstractOrderEntryModel> orderEntryCommentService) |
protected static final String COMMENT_SUBJECT
public List<OrderCancelEntry> processOrderCancel(OrderCancelRecordEntryModel orderCancelRecordEntryModel) throws OrderCancelException
OmsOrderCancelServiceprocessOrderCancel in interface OmsOrderCancelServiceOrderCancelExceptionprotected void checkIncomingCancellationRecordsMatchOrderEntries(OrderModel order, List<OrderEntryCancelRecordEntryModel> orderEntryCancellationRecords)
order - the order containing the entries to cancelorderEntryCancellationRecords - list of OrderEntryCancelRecordEntryModel containing information on which entries to cancel from
and requested quantity to cancelprotected List<OmsUnallocatedCancellationRemainder> cancelUnallocatedQuantities(List<OrderEntryCancelRecordEntryModel> orderEntryCancellationRecords)
orderEntryCancellationRecords - list of OrderEntryCancelRecordEntryModel containing information on which entries to cancel from
and requested quantity to cancelprotected List<OrderCancelEntry> extractCancellationEntriesForAllocatedQuantities(List<OmsUnallocatedCancellationRemainder> unallocatedCancellationRemainders)
OrderCancelEntry corresponding to the requested quantity to cancel.unallocatedCancellationRemainders - list of OrderEntryCancelRecordEntryModel containing information on which entries to cancel from
and requested quantity to cancelOrderCancelEntryprotected WarehousingCommentService<AbstractOrderEntryModel> getOrderEntryCommentService()
public void setOrderEntryCommentService(WarehousingCommentService<AbstractOrderEntryModel> orderEntryCommentService)
protected GuidKeyGenerator getGuidKeyGenerator()
public void setGuidKeyGenerator(GuidKeyGenerator guidKeyGenerator)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2017 SAP SE. All Rights Reserved.