com.ibm.commerce.taxation.commands
Class TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.order.utils.CalculationCmdImpl
-
- com.ibm.commerce.taxation.commands.TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.order.utils.CalculationCmd, com.ibm.commerce.order.utils.CalculationScaleLookupCmd, TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
Deprecated.
public class TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl extends com.ibm.commerce.order.utils.CalculationCmdImpl implements TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd
Appropriate for "per item" "combined sales and shipping" tax scales, especially where a maximum tax per item may be specified. (Only appropriate when thePerOffer
attribute of theCalculationCode
is true.)The "lookup number" and the "base monetary value" are equal. It is the sum of the "taxable net prices" of the OrderItems plus the sum of their shipping charges, divided by the "result multiplier". (Use the
CalculationRule
to determine theTaxCategory
). The "lookup number" is converted to the currency specified by thecurrStr
attribute of theCalculationScale
. The "result multiplier" is the sum of the OrderItem quantities. The mathematical weights are the "taxable net prices" plus the shipping charge each divided by its OrderItem quantity.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
Deprecated.-
Fields inherited from interface com.ibm.commerce.taxation.commands.TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description MonetaryAmount
getBaseMonetaryAmount()
Deprecated.java.math.BigDecimal
getLookupNumber()
Deprecated.java.math.BigDecimal
getResultMultiplier()
Deprecated.void
performExecute()
Deprecated.This method performs the business logic for this command.void
setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
Deprecated.void
setCalculationScaleAB(CalculationScaleAccessBean calculationScaleAB)
Deprecated.void
setOrderItemABHash(java.util.Hashtable orderItemABHash)
Deprecated.-
Methods inherited from class com.ibm.commerce.order.utils.CalculationCmdImpl
reset, setCalculationCmdCache, setCalculationUsage, setOrderCurrency, validateParameters
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.order.utils.CalculationCmd
setCalculationCmdCache, setCalculationUsage, setOrderCurrency
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl
public TaxableUnitPricePlusUnitShippingCalculationScaleLookupCmdImpl()
Deprecated.
-
-
Method Detail
-
getBaseMonetaryAmount
public MonetaryAmount getBaseMonetaryAmount()
Deprecated.- Specified by:
getBaseMonetaryAmount
in interfacecom.ibm.commerce.order.utils.CalculationScaleLookupCmd
-
getLookupNumber
public java.math.BigDecimal getLookupNumber()
Deprecated.- Specified by:
getLookupNumber
in interfacecom.ibm.commerce.order.utils.CalculationScaleLookupCmd
-
getResultMultiplier
public java.math.BigDecimal getResultMultiplier()
Deprecated.- Specified by:
getResultMultiplier
in interfacecom.ibm.commerce.order.utils.CalculationScaleLookupCmd
-
performExecute
public void performExecute() throws ECException
Deprecated.Description copied from class:AbstractECTargetableCommand
This method performs the business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
setCalculationRuleAB
public void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
Deprecated.- Specified by:
setCalculationRuleAB
in interfacecom.ibm.commerce.order.utils.CalculationScaleLookupCmd
-
setCalculationScaleAB
public void setCalculationScaleAB(CalculationScaleAccessBean calculationScaleAB)
Deprecated.- Specified by:
setCalculationScaleAB
in interfacecom.ibm.commerce.order.utils.CalculationScaleLookupCmd
-
setOrderItemABHash
public void setOrderItemABHash(java.util.Hashtable orderItemABHash)
Deprecated.- Specified by:
setOrderItemABHash
in interfacecom.ibm.commerce.order.utils.CalculationScaleLookupCmd
-
-