public interface TaxMgrIf
| Modifier and Type | Method and Description |
|---|---|
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
|
int |
getStoreCountryId() |
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.
|
int |
getStoreZoneId() |
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 |
getZonePerCountryAndCode(int countryId,
java.lang.String zoneDesc,
java.sql.Connection con)
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 |
getZonePerId(int zoneId,
java.sql.Connection con)
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
|
void refreshConfigs()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionZone getZonePerCountryAndCode(int countryId, java.lang.String zoneDesc) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
countryId - the countryIdzoneDesc - the zoneDescorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionZone getZonePerCountryAndCode(int countryId, java.lang.String zoneDesc, java.sql.Connection con) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
countryId - the countryIdzoneDesc - the zoneDesccon - Connection for transactionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionZone[] getZonesPerCountry(int countryId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
countryId - the countryIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionZone[] searchForZones(ZoneSearchIf search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
search - the searchorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionZone getZonePerId(int zoneId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
zoneId - the zoneIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionZone getZonePerId(int zoneId, java.sql.Connection con) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
zoneId - the zoneIdcon - Connection for a transactionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionjava.math.BigDecimal getStoreTaxRate(int taxClassId)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
com.konakart.app.KKException
taxClassId - the taxClassIdcom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionjava.math.BigDecimal getTaxRate(int countryId,
int zoneId,
int taxClassId)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
com.konakart.app.KKException
countryId - the countryIdzoneId - the zoneIdtaxClassId - the taxClassIdcom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionTaxRate[] getTaxRateObjects(int countryId, int zoneId, int taxClassId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, com.konakart.app.KKException
countryId - the countryIdzoneId - the zoneIdtaxClassId - the taxClassIdcom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionjava.math.BigDecimal getTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costcountryId - the countryIdzoneId - the zoneIdtaxClassId - the taxClassIdcom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)java.math.BigDecimal getTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId,
int quantity)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costcountryId - the countryIdzoneId - the zoneIdtaxClassId - the taxClassIdquantity - the quantitycom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)java.math.BigDecimal getStoreTax(java.math.BigDecimal cost,
int taxClassId)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costtaxClassId - the taxClassIdcom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)java.math.BigDecimal getStoreTax(java.math.BigDecimal cost,
int taxClassId,
int quantity)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costtaxClassId - the taxClassIdquantity - the quantitycom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)java.math.BigDecimal addTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costcountryId - the countryIdzoneId - the zoneIdtaxClassId - the taxClassIdcom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)java.math.BigDecimal addTax(java.math.BigDecimal cost,
int countryId,
int zoneId,
int taxClassId,
int quantity)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costcountryId - the countryIdzoneId - the zoneIdtaxClassId - the taxClassIdquantity - the quantitycom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)java.math.BigDecimal addStoreTax(java.math.BigDecimal cost,
int taxClassId)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costtaxClassId - the taxClassIdcom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)java.math.BigDecimal addStoreTax(java.math.BigDecimal cost,
int taxClassId,
int quantity)
throws com.konakart.app.KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
cost - the costtaxClassId - the taxClassIdquantity - the quantitycom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)GeoZone[] getGeoZonesPerZone(ZoneIf zone) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
zone - the zoneorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionCountry[] getAllCountries() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, com.konakart.app.KKException
com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionCountry getCountryPerName(java.lang.String countryName) throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
countryName - the countryNamecom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)Country getCountryPerId(int countryId) throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
countryId - the countryIdcom.konakart.app.KKException - an unexpected KKException exceptionorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)int getTaxQuantityRule()
throws com.konakart.app.KKException
com.konakart.app.KKException - an unexpected KKException exceptionint getTaxScale()
throws com.konakart.app.KKException
com.konakart.app.KKException - an unexpected KKException exceptionint getStoreCountryId()
throws com.konakart.app.KKException
com.konakart.app.KKException - an unexpected KKException exceptionint getStoreZoneId()
throws com.konakart.app.KKException
com.konakart.app.KKException - an unexpected KKException exceptionCopyright © 2018 DS Data Systems UK Ltd.