com.ibm.commerce.order.calculation

Interface WeightSpreadByNetPriceCalculationScaleLookupCmd

  • 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:
    WeightSpreadByNetPriceCalculationScaleLookupCmdImpl


    public interface WeightSpreadByNetPriceCalculationScaleLookupCmd
    extends CalculationScaleLookupCmd
    This version of the CalculationScaleLookup command is intended for calculation scales that are based on physical weight. It returns:
    Property Value
    base monetary value sum of net prices
    lookup number sum of physical weights
    result multiplier 1
    weight of each itemnet price of each item

    Appropriate for discount and shipping scales. (The discount/charge is determined from the "shipping weight", and spread back to the OrderItems in proportion to their "net prices".)
    The "lookup number" is the sum of the "shipping weights" of the OrderItems, converted to the QuantityUnit specified by the quantityUnit attribute of the CalculationScale. The "base monetary value" is the sum of the "net prices" of the OrderItems. The "result multiplier" is one. The mathematical weights are the "net prices" of the OrderItems.
    See Also:
    CalculationScaleLookupCmd, Item