public class GetDisplayTaxesCmdImpl extends TaskCommandImpl implements GetDisplayTaxesCmd
GST,
PSTand so forth) for the input catalog entry. It uses
CalculationCodeswith calculationUsage of Taxation to calculate the tax amounts for each of the tax categories that have been marked for display.
If the command is successful, it will populate two hashtables:
iCategorizedTaxAmount: contains the tax categories' Ids/names and tax amounts.
ihshTaxDescriptionHash: contains the tax categories' Ids/names and descriptions.
If unsuccessful, the two hashtables will be empty.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT |
Constructor and Description |
---|
GetDisplayTaxesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable | getCategorizedTaxAmount()
Returns the monetary amounts of all tax categories and their names.
|
java.util.Hashtable | getTaxDescriptionHash()
Gets the descriptions of all tax categories.
|
java.util.HashMap | getTaxRateHash()
Gets the rates of all tax categories.
|
void | performExecute()
Executes main business logic of the command.
|
void | reset()
Resets the command properties.
|
void | setAddressId(java.lang.Long aAddressId)
Sets the id of the input ship-to address (Optional).
|
void | setCatEntryId(java.lang.Long aCatEntryId)
Sets the id of the input catalog entry.
|
void | setCurrency(java.lang.String aCurrency)
Sets the currency of the input price amount.
|
void | setDisplayOnly(boolean abDisplayOnly)
Sets the flag to indicate if the taxes are calculated for display purpose (Optional).
|
void | setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
Sets the id of the fulfillment center (Optional).
|
void | setPrice(java.math.BigDecimal aPrice)
Sets the product price for calculating the taxes.
|
void | setQuantity(java.lang.Double aQuantity)
Sets the product quantity for calculating the taxes.
|
void | setShippingCharge(java.math.BigDecimal aShippingCharge)
Sets the shipping charge for the shipping the product.
|
void | setUOM(java.lang.String astrUOM)
Sets the unit of measure for the product.
|
void | validateParameters()
Checks mandatory parameters.
|
public static final java.lang.String COPYRIGHT
public void reset()
public java.util.Hashtable getCategorizedTaxAmount()
public java.util.Hashtable getTaxDescriptionHash()
public java.util.HashMap getTaxRateHash()
public void performExecute() throws ECException
public void setAddressId(java.lang.Long aAddressId)
public void setCatEntryId(java.lang.Long aCatEntryId)
public void setCurrency(java.lang.String aCurrency)
public void setDisplayOnly(boolean abDisplayOnly)
public void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
public void setPrice(java.math.BigDecimal aPrice)
public void setQuantity(java.lang.Double aQuantity)
public void setShippingCharge(java.math.BigDecimal aShippingCharge)
public void setUOM(java.lang.String astrUOM)
public void validateParameters() throws ECException