Class PrepareOrderCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, PrepareOrderCmd,,,,,,
    Direct Known Subclasses:
    ExternalPrepareOrderCmdImpl, PrepareProcurementOrderCmdImpl

    public class PrepareOrderCmdImpl
    extends TaskCommandImpl
    implements PrepareOrderCmd
    This command prepares an order by determining prices, discounts, shipping charges, and taxes for an order.


    • Delete generated order items (refer to the PREPAREFLAGS column in the ORDERITEMS table).
    • Check that all order items in the order are buyable (refer to the BUYABLE column in the CATENTRY table).
    • Call DoInventoryActionCmd to check the availability of the products with action CHECK_INVENTORY.
    • Obtain latest unit price for each order item, except those with manually overridden prices or are quotations. (refer to PREPAREFLAGS column of the ORDERITEMS table).
    • Re-calculate the amounts for the order.
    • Lock the order to indicate that it is ready for the OrderProcess command. The lock can be reset either by expiry, by changing the Order (for example, by using the OrderItemUpdate command), or explicitly by using the OrderUnlock command. The expiry period for a lock is stored in the QUOTEGOODFOR column of the STORE table.
    • Task commands called:

      AccessBeans used:

      Possible callers:

    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PrepareOrderCmdImpl

        public PrepareOrderCmdImpl()
    • Method Detail

      • getOrders

        public java.util.Vector getOrders()
        This method gets the ids of the orders to be prepared.
        a vector of order access beans.
      • setOrder

        public void setOrder(OrderAccessBean abOrder)
        This method sets the order to prepare.
        Specified by:
        setOrder in interface PrepareOrderCmd
        abOrder - order access bean
      • setOrders

        public void setOrders(java.util.Vector newOrders)
        This method sets the ids of the orders to be prepared.
        Specified by:
        setOrders in interface PrepareOrderCmd
        newOrders - java.util.Vector order identifiers