public class VATCalculationRuleCombineCmdImpl extends CalculationCmdImpl implements VATCalculationRuleCombineCmd
The default implementation of VATCalculationRuleCombineCmd.
This command only handle the sales tax and shipping tax when VAT(Value-Added-Tax) feature is enabled.
Its behaviour is as follows:
CalculationRuleQualifyCmd) to determine the list of
qualified items.
Commands used:
Access beans used:| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The copy right.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
VATCalculationRuleCombineCmdImpl()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CalculationRuleAccessBean[] |
getRules()
This method gets the calculation rules.
|
java.util.HashMap |
getTaxInfoForRule(java.lang.Integer anRuleId)
This method gets the tax info for the specified calculation rule.
|
java.math.BigDecimal[] |
getValues(java.lang.Integer anRuleId)
This method gets values for the specified calculation rule.
|
void |
performExecute()
The main logic.
|
void |
setCode(CalculationCodeAccessBean aabCode)
This method sets the calculaiton code.
|
void |
setItems(Item[] aItems)
This method sets the Item objects.
|
void |
setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
This method sets the tax categories
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, reset, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, 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, waitgetCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageIdgetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, 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 VATCalculationRuleCombineCmdImpl()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic CalculationRuleAccessBean[] getRules()
getRules in interface CalculationRuleCombineCmdpublic java.math.BigDecimal[] getValues(java.lang.Integer anRuleId)
getValues in interface CalculationRuleCombineCmdanRuleId - public java.util.HashMap getTaxInfoForRule(java.lang.Integer anRuleId)
anRuleId - public void setCode(CalculationCodeAccessBean aabCode)
setCode in interface CalculationRuleCombineCmdaabCode - public void setItems(Item[] aItems)
setItems in interface CalculationRuleCombineCmdaItems - public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
setTaxCategoryIds in interface CalculationRuleCombineCmdanTaxCategoryIds -