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:
This command uses the following AccessBeans:Constructor and Description |
---|
DiscountCalculationCodeApplyCmdImpl()
Deprecated.
DiscountCalculationCodeApplyCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | distributeExtraDiscount(java.math.BigDecimal discountToRedistribute, java.math.BigDecimal[] weights, java.math.BigDecimal[] netPrices, java.math.BigDecimal[] discounts)
Deprecated.
Calculate distribute extra discount on weight
|
void | performExecute()
Deprecated.
Execute the command.
|
protected java.math.BigDecimal | roundCustomized(java.math.BigDecimal value, java.lang.String currency)
Deprecated.
Get round customized price
|
void | setCalculationCodeAB(CalculationCodeAccessBean calculationCodeAB)
Deprecated.
Set the CalculationCodeAccessBean.
|
void | setOrderItemABHash(java.util.Hashtable orderItemABHash)
Deprecated.
Set the orderItemABHash.
|
public DiscountCalculationCodeApplyCmdImpl()
protected void distributeExtraDiscount(java.math.BigDecimal discountToRedistribute, java.math.BigDecimal[] weights, java.math.BigDecimal[] netPrices, java.math.BigDecimal[] discounts)
public void performExecute() throws ECException
protected java.math.BigDecimal roundCustomized(java.math.BigDecimal value, java.lang.String currency) throws ECException
public void setCalculationCodeAB(CalculationCodeAccessBean calculationCodeAB)
public void setOrderItemABHash(java.util.Hashtable orderItemABHash)
java.util.Hashtable orderItemABHash