Class ApplyOrderAdjustmentsCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand,, ApplyOrderAdjustmentsCmd,,,,,,


    public class ApplyOrderAdjustmentsCmdImpl
    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
    • Constructor Detail

      • ApplyOrderAdjustmentsCmdImpl

        public ApplyOrderAdjustmentsCmdImpl()
        ApplyOrderAdjustmentsCmdImpl constructor.
    • Method Detail

      • 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
        Specified by:
        setOrderItems in interface ApplyOrderAdjustmentsCmd
        setOrderItems in class
        orderItems - an array of order item access beans.