DiscountCalculationCodeApplyCmdImpl
.public class DiscountCalculationCodeApplyCmdImpl
extends com.ibm.commerce.order.utils.CalculationCmdImpl
implements com.ibm.commerce.order.utils.ShippingCalculationCodeApplyCmd
NOTE : Order adjustments can not make the net price of an order item cross the zero boundary. That is, if an order item has a gross price, that is on the opposite side of zero from the resulting net price. (after applying the discount). Then the net price is adjusted to zero and the discount is changed accordingly. Any left-over discount is distributed over the other order items that also qualify for the same discount. The distribution is done in proportion to the original discount. Any order item that has a gross price that is zero can only have a net price (price after applying discounts) that is positive.
This command calls the following TaskCommands:
Constructor and Description |
---|
DiscountCalculationCodeApplyCmdImpl()
Deprecated.
DiscountCalculationCodeApplyCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Deprecated.
Execute the command.
|
void |
setCalculationCodeAB(CalculationCodeAccessBean calculationCodeAB)
Deprecated.
Set the CalculationCodeAccessBean.
|
void |
setOrderItemABHash(java.util.Hashtable orderItemABHash)
Deprecated.
Set the orderItemABHash.
|
reset, setCalculationCmdCache, setCalculationUsage, setOrderCurrency, validateParameters
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
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
setCalculationCmdCache, setCalculationUsage, setOrderCurrency
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, validateParameters
public DiscountCalculationCodeApplyCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setCalculationCodeAB(CalculationCodeAccessBean calculationCodeAB)
setCalculationCodeAB
in interface com.ibm.commerce.order.utils.CalculationCodeApplyCmd
calculationCodeAB
- A CalculationCodeAccessBean.public void setOrderItemABHash(java.util.Hashtable orderItemABHash)
setOrderItemABHash
in interface com.ibm.commerce.order.utils.CalculationCodeApplyCmd
orderItemABHash
- An orderItemABHash.
java.util.Hashtable orderItemABHash