|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TaxMgrIf
TaxMgrIf Interface which an implementation of this manager must adhere to.
| Method Summary | |
|---|---|
java.math.BigDecimal |
addStoreTax(java.math.BigDecimal cost,
int taxClassId)
This is a utility method to directly get the final cost. |
java.math.BigDecimal |
addStoreTax(java.math.BigDecimal cost,
int taxClassId,
int quantity)
This is a utility method to directly get the final cost. |
java.math.BigDecimal |
addTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId)
This is a utility method to directly get the final cost. |
java.math.BigDecimal |
addTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId,
int quantity)
This is a utility method to directly get the final cost. |
Country[] |
getAllCountries()
Returns an array of all defined countries |
Country |
getCountryPerId(int countryId)
Returns the country object for the country id, or Null if the country doesn't exist in the DB. |
Country |
getCountryPerName(java.lang.String countryName)
Returns the country object for the country name, or Null if the country doesn't exist in the DB. |
GeoZone[] |
getGeoZonesPerZone(ZoneIf zone)
Find the GeoZones that exist for a particular zone |
java.math.BigDecimal |
getStoreTax(java.math.BigDecimal cost,
int taxClassId)
This is a utility method to directly return the tax that needs to be applied for a defined item cost and a quantity of 1. |
java.math.BigDecimal |
getStoreTax(java.math.BigDecimal cost,
int taxClassId,
int quantity)
This is a utility method to directly return the total tax that needs to be applied for a defined item cost and quantity. |
java.math.BigDecimal |
getStoreTaxRate(int taxClassId)
Returns the tax rate for the store for a taxClassId. |
java.math.BigDecimal |
getTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId)
This is a utility method to directly return the tax that needs to be applied for a defined item cost and a quantity of 1. |
java.math.BigDecimal |
getTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId,
int quantity)
This is a utility method to directly return the total tax that needs to be applied for a defined item cost and quantity. |
int |
getTaxQuantityRule()
Returns the rule used to calculate tax for products with multiple quantities. |
java.math.BigDecimal |
getTaxRate(int countryId,
int zoneId,
int taxClassId)
The tax rate can be calculated based on the country id, the zone id and the tax class id. |
TaxRate[] |
getTaxRateObjects(int countryId,
int zoneId,
int taxClassId)
The tax rate can be calculated based on the country id, the zone id and the tax class id. |
int |
getTaxScale()
Returns the precision use for calculating tax that matches the ADMIN_CURRENCY_DECIMAL_PLACES configuration variable. |
Zone |
getZonePerCountryAndCode(int countryId,
java.lang.String zoneDesc)
The zone name and zone code is compared with the zoneDesc parameter in order to determine whether a zone exists in the DB matching zoneDesc for the country defined by countryId. |
Zone |
getZonePerId(int zoneId)
Get a zone for a zoneId |
Zone[] |
getZonesPerCountry(int countryId)
Get all zones for a country. |
void |
refreshConfigs()
Get the config variables needed to setup the tax mgr |
Zone[] |
searchForZones(ZoneSearchIf search)
Search for zones using various search criteria |
| Method Detail |
|---|
void refreshConfigs()
throws java.lang.Exception
java.lang.Exception
Zone getZonePerCountryAndCode(int countryId,
java.lang.String zoneDesc)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
countryId - zoneDesc -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Zone[] getZonesPerCountry(int countryId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
countryId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Zone[] searchForZones(ZoneSearchIf search)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
search -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Zone getZonePerId(int zoneId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
zoneId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
java.math.BigDecimal getStoreTaxRate(int taxClassId)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
taxClassId -
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
java.math.BigDecimal getTaxRate(int countryId,
int zoneId,
int taxClassId)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
countryId - zoneId - taxClassId -
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
TaxRate[] getTaxRateObjects(int countryId,
int zoneId,
int taxClassId)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
countryId - zoneId - taxClassId -
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
java.math.BigDecimal getTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - countryId - zoneId - taxClassId -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.math.BigDecimal getTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId,
int quantity)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - countryId - zoneId - taxClassId - quantity -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.math.BigDecimal getStoreTax(java.math.BigDecimal cost,
int taxClassId)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - taxClassId -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.math.BigDecimal getStoreTax(java.math.BigDecimal cost,
int taxClassId,
int quantity)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - taxClassId - quantity -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.math.BigDecimal addTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - countryId - zoneId - taxClassId -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.math.BigDecimal addTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId,
int quantity)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - countryId - zoneId - taxClassId - quantity -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.math.BigDecimal addStoreTax(java.math.BigDecimal cost,
int taxClassId)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - taxClassId -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.math.BigDecimal addStoreTax(java.math.BigDecimal cost,
int taxClassId,
int quantity)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - taxClassId - quantity -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
GeoZone[] getGeoZonesPerZone(ZoneIf zone)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
zone -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Country[] getAllCountries()
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
Country getCountryPerName(java.lang.String countryName)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
countryName -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
Country getCountryPerId(int countryId)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
countryId -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int getTaxQuantityRule()
throws KKException
KKException
int getTaxScale()
throws KKException
KKException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||