com.ibm.commerce.order.calculation
Interface TaxableUnitPriceCalculationScaleLookupCmd

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

public interface TaxableUnitPriceCalculationScaleLookupCmd
extends CalculationScaleLookupCmd

This version of the CalculationScaleLookup command is intended for calculation scales that are based on taxable unit price. It returns:
Property Value
base monetary value sum of taxable net prices divided by sum of actual quantities
lookup number sum of taxable net prices divided by sum of actual quantities
result multiplier 1
weight of each itemtaxable net price divided by actual quantity of each item

Appropriate for "per item" "sales" tax scales, especially where a maximum tax per item may be specified. (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 "taxable net prices" of the OrderItems, divided by the "result multiplier". (Use the CalculationRule to determine the TaxCategory.) 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 "taxable net prices" each divided by its OrderItem quantity.

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