com.ibm.commerce.price.commands
Class ApplyOrderAdjustmentsCmdImpl
java.lang.Object
ApplyCalculationUsagesCmdImpl
com.ibm.commerce.price.commands.ApplyOrderAdjustmentsCmdImpl
- All Implemented Interfaces:
- ApplyOrderAdjustmentsCmd, TaskCommand
- public class ApplyOrderAdjustmentsCmdImpl
- extends ApplyCalculationUsagesCmdImpl
- implements ApplyOrderAdjustmentsCmd
Apply order adjustments against an order. First all existing order adjustments (with a calculation usage of Discount) are deleted. Then all calculation codes with a calculation usage of Discount are used to create new order adjustments. However, no orderItem adjustments for "priceOverride" orderItems are created.
This command calls the following TaskCommands:
This command uses the following AccessBeans:
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplyOrderAdjustmentsCmdImpl
public ApplyOrderAdjustmentsCmdImpl()
- ApplyOrderAdjustmentsCmdImpl constructor.
init
protected void init()
throws ECException
- init method comment.
-
- Throws:
- ECException
setOrderItems
public void setOrderItems(OrderItemAccessBean[] orderItems)
throws ECSystemException
- Set the order items to process for discounts. Only order items that have not been overridden are processed for discounts. An order item with the priceOverride flag set is ignored. All order items also have their total adjustment field set to zero regardless of the state of the priceOverride flag.
-
- Specified by:
- setOrderItems in interface ApplyOrderAdjustmentsCmd
-
- Parameters:
- orderItems - an array of order item access beans.
- Throws:
- ECSystemException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.