TaxableUnitPriceCalculationScaleLookupCmdImpl.public class TaxableUnitPriceCalculationScaleLookupCmdImpl extends com.ibm.commerce.order.utils.CalculationCmdImpl implements TaxableUnitPriceCalculationScaleLookupCmd
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
Deprecated.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
TaxableUnitPriceCalculationScaleLookupCmdImpl()
Deprecated.
|
| 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.
|
reset, setCalculationCmdCache, setCalculationUsage, setOrderCurrency, validateParametersaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCalculationCmdCache, setCalculationUsage, setOrderCurrencyexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public TaxableUnitPriceCalculationScaleLookupCmdImpl()
public MonetaryAmount getBaseMonetaryAmount()
getBaseMonetaryAmount in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmdpublic java.math.BigDecimal getLookupNumber()
getLookupNumber in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmdpublic java.math.BigDecimal getResultMultiplier()
getResultMultiplier in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmdpublic void performExecute()
throws ECException
AbstractECTargetableCommandperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void setCalculationRuleAB(CalculationRuleAccessBean calculationRuleAB)
setCalculationRuleAB in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmdpublic void setCalculationScaleAB(CalculationScaleAccessBean calculationScaleAB)
setCalculationScaleAB in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmdpublic void setOrderItemABHash(java.util.Hashtable orderItemABHash)
setOrderItemABHash in interface com.ibm.commerce.order.utils.CalculationScaleLookupCmd