public class GetReturnTaxesCmdImpl extends TaskCommandImpl implements GetReturnTaxesCmd
GetReturnTaxesCmd
Task Command Implementation calculates the tax amounts
of the original order items net those to be returned in a RMA.
If the command is successful in calculating the taxes, it will return the tax amounts for the net items.
Behaviour
recalculates taxes on the original order items net the items to be returned.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
defaultCommandClassName, NAME
Constructor and Description |
---|
GetReturnTaxesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
OrderItemAccessBean[] |
getOrderItemABs()
Returns the
|
java.util.Hashtable |
getOrderItemAdjustments(java.lang.Long aOrderItemId)
Obtains the original adjustment amounts for the
|
void |
performExecute()
Executes main business logic of the command.
|
void |
setRMAItemABs(RMAItemAccessBean[] aRMAItemABs)
Sets the
|
void |
validateParameters()
Checks mandatory parameters.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public OrderItemAccessBean[] getOrderItemABs()
orderitemaccess beans.
getOrderItemABs
in interface GetReturnTaxesCmd
orderitems.
public java.util.Hashtable getOrderItemAdjustments(java.lang.Long aOrderItemId) throws ECException
orderitemto be returned.
aOrderItemId
- The id of the orderitem.
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setRMAItemABs(RMAItemAccessBean[] aRMAItemABs)
RMAItemfor which the new tax amounts are to be calculated.
setRMAItemABs
in interface GetReturnTaxesCmd
aRMAItemABs
- the access beans of the orderItemto be returned.
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException