public class DefaultDeliveryCostsStrategy extends Object implements DeliveryCostsStrategy
AbstractOrder.
Will be used by AbstractOrder.findDeliveryCosts().| Constructor and Description |
|---|
DefaultDeliveryCostsStrategy() |
| Modifier and Type | Method and Description |
|---|---|
PriceValue |
findDeliveryCosts(SessionContext ctx,
AbstractOrder order)
Called during
AbstractOrder.calculate(), AbstractOrder.calculate(java.util.Date),
AbstractOrder.recalculate() and AbstractOrder.recalculate(java.util.Date) to fetch and set the
delivery cost for this order. |
public PriceValue findDeliveryCosts(SessionContext ctx, AbstractOrder order)
AbstractOrder.calculate(), AbstractOrder.calculate(java.util.Date),
AbstractOrder.recalculate() and AbstractOrder.recalculate(java.util.Date) to fetch and set the
delivery cost for this order.
As default this method calls DeliveryMode.getCost(AbstractOrder) when a delivery mode was set. You may
override this method to implement different behavior. Please note that at this time no order total have been
set (Except the order total which holds the entry total sum) so don't rely on these values.
findDeliveryCosts in interface DeliveryCostsStrategyCopyright © 2017 SAP SE. All Rights Reserved.