ResolveOrderItemPriceCmd task command

The ResolveOrderItemPriceCmd task command resolves the price for a group of order items from one order.

Task command

com.ibm.commerce.orderitems.commands.ResolveOrderItemPriceCmd

Implementation class

com.ibm.commerce.orderitems.commands.ResolveOrderItemPriceCmdImpl

Commands called

CheckAndResetOrderItemPriceFlagCmd

GetContractUnitPriceCmd

GetContractSpecialPriceCmd

GetBaseUnitPriceCmd

GetBaseSpecialPriceCmd

Possible callers

OrderItemAddCmdImpl

OrderItemUpdateCmdImpl

OrderItemDeleteCmdImpl

OrderProcessingHelper

OrderCalculateCmdImpl

PromotionEngineOrderCalculateCmdImpl

OrderItemDisplayCmdImpl

Behavior

Call CheckAndResetOrderItemPriceFlagCmd to verify if the price needs to be refreshed

If a new offerId or contractId is passed in, or the price has expired:
  • The order item needs to refresh the price. The price refresh flags are set to zero

For each order item passed in:

Check if each order item passed in can skip pricing. An order item can skip if marked as price-overridden, skip-repricing, auto-generated or quotation

If the order item needs to do pricing:
  • If the order item is not a dynamic kit:
    • Call the corresponding price command: GetContractUnitPriceCmd, GetContractSpecialPriceCmd, GetBaseUnitPriceCmd, GetBaseSpecialPriceCmd to resolve the price for the item
  • Else:
    • Call PriceCalculationHelper to get the dynamic kit price

Update the order item total product

Update order total product