public class DefaultOmsOrderCancelService extends java.lang.Object implements OmsOrderCancelService
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
COMMENT_SUBJECT |
| Constructor and Description |
|---|
DefaultOmsOrderCancelService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelUnallocatedAndAddRemainder(java.util.List<OmsUnallocatedCancellationRemainder> remainders,
OrderEntryCancelRecordEntryModel orderEntryCancellationRecord)
Cancels in a first time the unallocated quantities and if necessary creates remainders for the left quantities
|
protected java.util.List<OmsUnallocatedCancellationRemainder> |
cancelUnallocatedQuantities(java.util.List<OrderEntryCancelRecordEntryModel> orderEntryCancellationRecords)
Cancels unallocated quantities based on each entry's requested cancel quantity.
|
protected void |
checkIncomingCancellationRecordsMatchOrderEntries(OrderModel order,
java.util.List<OrderEntryCancelRecordEntryModel> orderEntryCancellationRecords)
Checks that the order entry cancellation records are linked to the proper order entries.
|
protected java.util.List<OrderCancelEntry> |
extractCancellationEntriesForAllocatedQuantities(java.util.List<OmsUnallocatedCancellationRemainder> unallocatedCancellationRemainders)
Extracts a list of
OrderCancelEntry corresponding to the requested quantity to cancel. |
protected GuidKeyGenerator |
getGuidKeyGenerator() |
protected ModelService |
getModelService() |
protected WarehousingCommentService |
getOrderEntryCommentService() |
java.util.List<OrderCancelEntry> |
processOrderCancel(OrderCancelRecordEntryModel orderCancelRecordEntryModel)
process order cancellation
|
void |
setGuidKeyGenerator(GuidKeyGenerator guidKeyGenerator) |
void |
setModelService(ModelService modelService) |
void |
setOrderEntryCommentService(WarehousingCommentService orderEntryCommentService) |
protected static final java.lang.String COMMENT_SUBJECT
public java.util.List<OrderCancelEntry> processOrderCancel(OrderCancelRecordEntryModel orderCancelRecordEntryModel) throws OrderCancelException
OmsOrderCancelServiceprocessOrderCancel in interface OmsOrderCancelServiceorderCancelRecordEntryModel - holds information about the order entry to be cancelledOrderCancelEntryOrderCancelException - OrderCancelExceptionprotected void checkIncomingCancellationRecordsMatchOrderEntries(OrderModel order, java.util.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 java.util.List<OmsUnallocatedCancellationRemainder> cancelUnallocatedQuantities(java.util.List<OrderEntryCancelRecordEntryModel> orderEntryCancellationRecords)
orderEntryCancellationRecords - list of OrderEntryCancelRecordEntryModel containing information on which entries to cancel from
and requested quantity to cancelprotected void cancelUnallocatedAndAddRemainder(java.util.List<OmsUnallocatedCancellationRemainder> remainders, OrderEntryCancelRecordEntryModel orderEntryCancellationRecord)
remainders - the list of remaindersorderEntryCancellationRecord - the OrderEntryCancelRecordEntryModelprotected java.util.List<OrderCancelEntry> extractCancellationEntriesForAllocatedQuantities(java.util.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 getOrderEntryCommentService()
public void setOrderEntryCommentService(WarehousingCommentService orderEntryCommentService)
protected GuidKeyGenerator getGuidKeyGenerator()
public void setGuidKeyGenerator(GuidKeyGenerator guidKeyGenerator)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.