public class WarehousingReturnService extends DefaultReturnService
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
WarehousingReturnService() |
| Modifier and Type | Method and Description |
|---|---|
RefundEntryModel |
createRefund(ReturnRequestModel request,
AbstractOrderEntryModel entry,
String notes,
Long expectedQuantity,
ReturnAction action,
RefundReason reason)
Creates a ReplRefundacement based on the assigned OrderEntry instance
|
ReturnRequestModel |
createReturnRequest(OrderModel order)
Creates an "authorization" object (@link ReturnRequest} for the order to be returned, if there doesn't exists one
for that order so far
|
protected void |
finalizeRefund(RefundEntryModel refundEntry,
boolean isInStore)
Handles whether or not the return is in store.
|
protected void |
finalizeReturnRequest(ReturnRequestModel returnRequest)
This updates
ReturnRequestModel with ReturnStatus APPROVAL_PENDING |
protected void |
validateRefund(ReturnRequestModel request,
OrderEntryModel entry,
String notes,
Long expectedQuantity,
ReturnAction action,
RefundReason reason)
Verifies the parameters of the createRefund call
|
protected void |
validateReturnRequest(OrderModel order)
Verifies the parameters of the createReturnRequest call
|
addReplacementOrderEntries, createReplacement, createReplacementOrder, createRMA, getAllReturnableEntries, getFlexibleSearchService, getGenerator, getOrderByCode, getOrderReturnRecordForOrder, getRefundOrderProcessor, getRefundService, getReplacementOrder, getReplacementOrderProcessor, getReplacements, getReturnableChecks, getReturnActionRequestExecutor, getReturnEntries, getReturnEntry, getReturnRequests, getReturnsEntryProcessor, getRMA, isReturnable, onReturnApprovalResponse, onReturnCancelResponse, onReturnReceptionResponse, processRefundOrder, processReplacementOrder, processReturnEntries, requestManualPaymentReversalForReturnRequest, requestManualTaxReversalForReturnRequest, setFlexibleSearchService, setGenerator, setModificationHandler, setRefundOrderProcessor, setRefundService, setReplacementOrderDao, setReplacementOrderProcessor, setReturnableChecks, setReturnActionRequestExecutor, setReturnRequestDao, setReturnsEntryProcessorgetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic ReturnRequestModel createReturnRequest(OrderModel order)
DefaultReturnServicecreateReturnRequest in interface ReturnServicecreateReturnRequest in class DefaultReturnServiceorder - the order which should be returnedpublic RefundEntryModel createRefund(ReturnRequestModel request, AbstractOrderEntryModel entry, String notes, Long expectedQuantity, ReturnAction action, RefundReason reason)
DefaultReturnServicecreateRefund in interface ReturnServicecreateRefund in class DefaultReturnServicerequest - we use this for the verification process (order)entry - the original OrderEntrynotes - some notesexpectedQuantity - the amount of products which the customer wants to got a refund.action - action which indicates if the 'returns process' will be executed immediately or is still on hold
(waiting for the article to be send back)reason - reason for the refundprotected void validateReturnRequest(OrderModel order)
order - The order for which the return is createdprotected void finalizeReturnRequest(ReturnRequestModel returnRequest)
ReturnRequestModel with ReturnStatus APPROVAL_PENDINGreturnRequest - The newly created ReturnRequestprotected void validateRefund(ReturnRequestModel request, OrderEntryModel entry, String notes, Long expectedQuantity, ReturnAction action, RefundReason reason)
request - The ReturnRequest that will contain this RefundEntryentry - The OrderEntry with the products to be refundednotes - Adds notes about why the refund is requested (optional)expectedQuantity - The amount of items to be refundedaction - The action to take on this refundreason - Reason code why the refund is requestedprotected void finalizeRefund(RefundEntryModel refundEntry, boolean isInStore)
ReturnStatus.RECEIVED and the received quantity to the expected quantity. For an online return
request, the received quantity is set to 0 and the and "status" is set to ReturnStatus.APPROVAL_PENDINGrefundEntry - The newly created refundEntryisInStore - indicates if the return request is in store or onlineCopyright © 2017 SAP SE. All Rights Reserved.