com.ibm.commerce.order.calculation
Interface QuantitySpreadByNetPriceCalculationScaleLookupCmd

All Superinterfaces:
BusinessPolicyCommand, CalculationCmd, CalculationScaleLookupCmd, ECCommand, TaskCommand
All Known Implementing Classes:
QuantitySpreadByNetPriceCalculationScaleLookupCmdImpl

public interface QuantitySpreadByNetPriceCalculationScaleLookupCmd
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 itemnet price of each item

Appropriate for discount and shipping scales. (The discount/charge is determined from the quantity, and spread back to the OrderItems in proportion to their "net prices".)
If the quantityUnit attribute of the CalculationScale is not empty, the "lookup number" is the sum of the "actual quantities" of the OrderItems, converted to the QuantityUnit specified by the quantityUnit attribute of the CalculationScale and the mathematical weights are the "net prices" of the OrderItems. But if the quantityUnit attribute of the CalculationScale is empty, the "lookup number" is the sum of 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

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationScaleLookupCmd
getBaseMonetaryValue, getLookupNumber, getResultMultiplier, getWeights, setItems, setRule, setScale
 
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationCmd
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
 
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME