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 |
checkCancellationQuantitiesOnConsignments(OrderModel order,
java.util.List<OrderEntryCancelRecordEntryModel> orderCancelRecordEntries)
Compares cancellation request with the order's consignment status(es) to ensure that the
cancellation quantities requested are possible
|
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 OrderCancelService |
getOrderCancelService() |
protected WarehousingCommentService |
getOrderEntryCommentService() |
protected UserService |
getUserService() |
java.util.List<OrderCancelEntry> |
processOrderCancel(OrderCancelRecordEntryModel orderCancelRecordEntryModel)
process order cancellation
|
void |
setGuidKeyGenerator(GuidKeyGenerator guidKeyGenerator) |
void |
setModelService(ModelService modelService) |
void |
setOrderCancelService(OrderCancelService orderCancelService) |
void |
setOrderEntryCommentService(WarehousingCommentService orderEntryCommentService) |
void |
setUserService(UserService userService) |
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 checkCancellationQuantitiesOnConsignments(OrderModel order, java.util.List<OrderEntryCancelRecordEntryModel> orderCancelRecordEntries)
order - the OrderModel containing the OrderEntryModels to cancelorderCancelRecordEntries - list of OrderEntryCancelRecordEntryModel containing information on which OrderEntryModels to cancel fromprotected 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)
protected OrderCancelService getOrderCancelService()
public void setOrderCancelService(OrderCancelService orderCancelService)
protected UserService getUserService()
public void setUserService(UserService userService)
Copyright © 2018 SAP SE. All Rights Reserved.