public class PickupStrategy extends AbstractSourcingStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CODE_PICKUP |
| Constructor and Description |
|---|
PickupStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canSourceOrderEntry(AbstractOrderEntryModel entry,
SourcingLocation location)
Validates if the given
SourcingLocation can be used to source the given AbstractOrderEntryModel |
protected void |
createPickupSourcingResult(SourcingContext sourcingContext,
SourcingLocation location)
Create a sourcing result if the pickup location specified in the order has some stocks available for a given
product and store it in the sourcing context.
When there is insufficient stock for a given product, the sourcing context is marked as not complete. When there is no stock for a given product, no sourcing result is created. |
protected PosSelectionStrategy |
getPosSelectionStrategy() |
void |
setPosSelectionStrategy(PosSelectionStrategy posSelectionStrategy) |
void |
source(SourcingContext sourcingContext)
Determine which order entries/order item quantities should be sourced from which sourcing locations.
|
checkSourceCompleted, getAvailabilityForProduct, getQuantitySourced, getSourcingResultFactory, isTerminal, setSourcingResultFactory, setTerminalprotected static final java.lang.String CODE_PICKUP
public void source(SourcingContext sourcingContext)
SourcingStrategysourcingContext - - the sourcing context; cannot be nullprotected boolean canSourceOrderEntry(AbstractOrderEntryModel entry, SourcingLocation location)
SourcingLocation can be used to source the given AbstractOrderEntryModelentry - given AbstractOrderEntryModellocation - given SourcingLocationprotected void createPickupSourcingResult(SourcingContext sourcingContext, SourcingLocation location)
sourcingContext - - the sourcing contextlocation - - the location where we getting the product availability.protected PosSelectionStrategy getPosSelectionStrategy()
public void setPosSelectionStrategy(PosSelectionStrategy posSelectionStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.