CheckAndResetOrderItemPriceFlagCmd task command

The CheckAndResetOrderItemPriceFlagCmd task command is used to check and reset the bit price flag "PRICE_REFRESHED" for the order items if price is expired. The flag PRICE_REFRESHED indicates whether the price should be recalculated. If the price is expired, the flag should be reset to 0 and price should be recalculated.

Task command

CheckAndResetOrderItemPriceFlagCmd

Implementation class

CheckAndResetOrderItemPriceFlagCmdImpl

Commands called

None

Possible callers

ResolveOrderItemPriceCmdImpl

Behavior

If STORE.PRICEREFFLAG = 8:
  • Group the order items with the same catentryId
  • If one of the order items for the same catentryId has expired or its PREPAREFLAGS_PRICE_REFRESHED= 0:
    • Reset PREPAREFLAGS_PRICE_REFRESHED for all the order items in the group with same catentryId
Else, for each order item:
  • If the order item has been expired:
    • Reset PREPAREFLAGS_PRICE_REFRESHED for the order item