public class ApplyOrderTaxesTIKCmdImpl extends TaskCommandImpl implements com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd, ApplyOrderTaxesCmd
GST,
PSTand so forth) for each OrderItem supplied by
OrderPrepare. It uses the TaxOrderCmd and TaxOrderItemCmd interfaces to calculate the different tax amounts for each of the OrderItems.
If the command is successful, it will set the tax amounts in ORDERITEMS.
If unsuccessful, the command throws the ECApplicationException specifying an Error Code of
ERRCODE_NO_TAXand the Error View named CALCODE_ERRVIEW.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
ApplyOrderTaxesTIKCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | callTaxTIFLoop()
Loop through the
|
protected com.ibm.commerce.order.utils.CalculationCmd | createCommand(java.lang.Integer calculationMethodId) |
protected java.lang.String | getOrderCurrency() |
protected OrderItemAccessBean[] | getOrderItems() |
void | init() |
void | performExecute()
This method performs the business logic for this command.
|
protected void | postApplyCalculationUsages()
Check for each order items if the tax amounts have been successfully calculated.
|
protected void | postCalculationCodeApply(java.util.Hashtable orderItemABHash) |
protected void | setCalculationUsages(java.lang.Integer[] calculationUsages) |
void | setOrderCurrency(java.lang.String orderCurrency) |
void | setOrderItems(java.util.Enumeration orderItems) |
void | setOrderItems(OrderItemAccessBean[] orderItems) |
protected void | setOrderItemsI(OrderItemAccessBean[] orderItems) |
void | setTaxCategoryIds(java.lang.Integer[] taxCategoryIds) |
void | validateParameters()
This method extracts and validates the input parameters of this command implementation.
|
public static final java.lang.String COPYRIGHT
protected void callTaxTIFLoop() throws ECException
orderItemABArrayand add each item to a
TaxwareOrderobject. Call
Taxwareto calculate the taxes - and post the results back.
protected com.ibm.commerce.order.utils.CalculationCmd createCommand(java.lang.Integer calculationMethodId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected java.lang.String getOrderCurrency()
protected OrderItemAccessBean[] getOrderItems()
public void init() throws ECException
public void performExecute() throws ECException
protected void postApplyCalculationUsages() throws ECException
protected void postCalculationCodeApply(java.util.Hashtable orderItemABHash) throws ECException
protected void setCalculationUsages(java.lang.Integer[] calculationUsages)
public void setOrderCurrency(java.lang.String orderCurrency)
public void setOrderItems(OrderItemAccessBean[] orderItems) throws ECSystemException
public void setOrderItems(java.util.Enumeration orderItems) throws ECSystemException
protected void setOrderItemsI(OrderItemAccessBean[] orderItems)
public void setTaxCategoryIds(java.lang.Integer[] taxCategoryIds)
public void validateParameters() throws ECException