com.ibm.commerce.order.calculation
Interface UnitPriceCalculationScaleLookupCmd
- All Superinterfaces:
- BusinessPolicyCommand, CalculationCmd, CalculationScaleLookupCmd, TaskCommand
- All Known Implementing Classes:
- UnitPriceCalculationScaleLookupCmdImpl
- public interface UnitPriceCalculationScaleLookupCmd
- extends CalculationScaleLookupCmd
This version of the CalculationScaleLookup command is intended for calculation scales that are based on unit price. It returns:
Property |
Value |
base monetary value |
sum of net prices divided by sum of actual quantities |
lookup number |
sum of net prices divided by sum of actual quantities |
result multiplier |
1 |
weight of each item |
net price divided by actual quantity of each item |
Appropriate for discount and shipping scales that specify a fixed or maximum charge per item based on each item's unit price. (Only appropriate when the perOffer attribute of the CalculationCode is true.)
Both the "lookup number" and the "base monetary value" are the sum of the "net prices" of the OrderItems, divided by the "result multiplier". The "lookup number" is converted to the currency specified by the currStr attribute of the CalculationScale. The "result multiplier" is the sum of the OrderItem quantities. The mathematical weights are the "net prices" each divided by its OrderItem quantity.
- See Also:
- CalculationScaleLookupCmd, Item
COPYRIGHT
public static final java.lang.String COPYRIGHT
-
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
-
- See Also:
- Constant Field Values
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
-
- See Also:
- Constant Field Values
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.