public class ApplyOrderTaxesCmdImpl extends com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdImpl implements ApplyOrderTaxesCmd
GST,
PSTand so forth) for each OrderItem supplied by
OrderPrepare. It uses
CalculationCodeswith calculationUsage of Taxation to calculate the different tax amounts for each of the OrderItems.
If the command is successful, it will invoke another Task Command to 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
Deprecated.
|
Constructor and Description |
---|
ApplyOrderTaxesCmdImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void | init()
Deprecated.
This method sets up the system for taxation : Tax Types for Calculation Usages. Tax Categories for each of the Tax Types.
|
protected void | postApplyCalculationUsages(java.lang.Integer usageType)
Deprecated.
Check if the command is unsuccessful.
|
protected void | postCalculationCodeApply(java.util.Hashtable orderItemABHash, java.lang.Integer usageType)
Deprecated.
Check for each OrderItems if the tax amounts have been successfully calculated.
|
public static final java.lang.String COPYRIGHT
public void init() throws ECException
protected void postApplyCalculationUsages(java.lang.Integer usageType) throws ECException
ERRCODE_NO_TAXand the Error View named CALCODE_ERRVIEW.
protected void postCalculationCodeApply(java.util.Hashtable orderItemABHash, java.lang.Integer usageType)