com.ibm.commerce.order.calculation

Interface QuantityCalculationScaleLookupCmd

  • All Superinterfaces:
    BusinessPolicyCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, CalculationCmd, CalculationScaleLookupCmd, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    QuantityCalculationScaleLookupCmdImpl, WeightCalculationScaleLookupCmdImpl


    public interface QuantityCalculationScaleLookupCmd
    extends CalculationScaleLookupCmd
    This version of the CalculationScaleLookup command is intended for calculation scales that are based on quantity. It returns:
    Property Value
    base monetary value sum of net prices
    lookup number sum of actual quantities
    result multiplier 1
    weight of each itemactual quantity of each item

    Appropriate for shipping scales. (The charge is determined from the quantity, and spread back to the OrderItems in proportion to their quantity.)
    If the quantityUnit attribute of the CalculationScale is not empty. The "lookup number" is the sum of the followings.
  • The "actual quantities" of the OrderItems, converted to the QuantityUnit specified by the quantityUnit attribute of the CalculationScale.
  • The mathematical weights are the "actual quantities" of the OrderItems.
  • But if the quantityUnit attribute of the CalculationScale is empty. The "lookup number" is the sum of the followings.
  • The quantities of the OrderItems.
  • The mathematical weights are the quantities of the OrderItems.

  • The "base monetary value" is the sum of the "net prices" of the OrderItems. The "result multiplier" is one.
See Also:
CalculationScaleLookupCmd, Item