public class ApplyCalculationUsageSalesTaxTIKCmdImpl extends ApplyCalculationUsageTIKBaseCmdImpl implements ApplyCalculationUsageSalesTaxTIKCmd
ApplyCalculationUsageSalesTaxTIKCmd
Task Command Implementation is called
by the OrderPrepareCmd
Controller Command to set the different sales tax
amounts (e.g. GST, PST etc.) for each OrderItem supplied by OrderPrepare.
Given a set of OrderItems
in a particular Order this command invokes
the CalculationCodeCombineCmd task command to determine which CalculationCodes
should be applied to which OrderItems.
CalculationCodeCombineCmd returns a list of elements
where each
element is a CalculationCode and a list of OrderItems to which the CalculationCode
is applicable.
Item
,
With the list of OrderItems and the CalculationCodes, ApplyCalculationUsageTIKCmd
uses the TaxOrderCmd and TaxOrderItemCmd interfaces provided in the
Tax Integration Interface to invoke a tax calculation module to calculate the
tax amounts for each of the OrderItems.
If the command is successful, it will set the tax amounts in ORDERITEMS.
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.math.BigDecimal |
BIG_DECIMAL_ZERO
The big decimal zero field
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.Double |
DOUBLE_ZERO
The double zero field
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ApplyCalculationUsageSalesTaxTIKCmdImpl()
Constructor for ApplyCalculationUsageSalesTaxTIKCmdImpl
|
getSellerId, getTotalRecyclingFee, performExecute, reset, setTransactionType
checkAppliedItems, getAppliedItems, setItems, setTaxCategoryIds
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
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, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAppliedItems, getAppliedItems, setItems, setTaxCategoryIds
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.math.BigDecimal BIG_DECIMAL_ZERO
public static final java.lang.Double DOUBLE_ZERO