public class Tax extends BaseOrderTotalModule implements OrderTotalInterface
Modifier and Type | Class and Description |
---|---|
protected class |
Tax.StaticData
Used to store the static data of this module
|
log, orderTotalList
basePackage, debugStackTraceExclusions
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
java.lang.String |
getModuleClassName()
Gets the name of the module class.
|
protected OrderTotal |
getMultipleOT(Order order,
Tax.StaticData sd,
java.util.ResourceBundle rb)
Display tax using an order total for each tax rate
|
protected KKCriteria |
getNewCriteria(boolean allStores)
Gets a new KKCriteria object with the option of it being for all stores when in multi-store
single db mode.
|
protected void |
getOrderCountryAndZone(Order order)
Instantiate the Country and Zone objects for the order
|
OrderTotal |
getOrderTotal(Order order,
boolean dispPriceWithTax,
java.util.Locale locale)
Create and return an OrderTotal object for the tax amount.
|
protected OrderTotal |
getSingleOT(Order order,
Tax.StaticData sd,
java.util.ResourceBundle rb)
Display tax using a single order total
|
int |
getSortOrder() |
protected TaxRate[] |
getTaxRateObjects(Order order,
OrderProductIf op,
int taxClassId) |
boolean |
isAvailable()
Returns true or false
|
protected boolean |
isMultiStoreShareCustomersOrProducts()
Returns true if we need to share customers or products in multi-store single db mode
|
void |
setStaticVariables()
Sets some static variables during setup
|
addTax, commitOrder, getCustomBigDecimal, getCustomBoolean, getCustomInt, getCustomString, getDiscountOrderTotalFromList, getDiscountOrderTotalFromList, getOrderTotalList, getPromotionResult, getTaxForDiscount, getTaxFromTotal, removeCouponId, removePromotionId, removeTax, setCouponIds, setOrderTotalList, setPromotionIds, setRefundValues, setRefundValuesForSingleOrderTotal
getBasketMgr, getCatMgr, getConfigMgr, getConfiguration, getConfigurationValue, getConfigurationValueAsBigDecimalWithDefault, getConfigurationValueAsBool, getConfigurationValueAsIntWithDefault, getCurrMgr, getCustMgr, getCustTagMgr, getDebugStackTraceExclusions, getEmailMgr, getEng, getLangMgr, getMultiStoreMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getRandomText, getRandomText, getResourceBundle, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getTaxMgr, getZoneCodeForZoneName, init, isAvailable, isAvailable, setDebugStackTraceExclusions, updateStaticVariablesNow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commitOrder, getOrderTotalList, getPromotionResult, setOrderTotalList
public Tax(KKEngIf eng) throws org.apache.torque.TorqueException, com.konakart.app.KKException, com.workingdogs.village.DataSetException
eng
- the engcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected exception from the KonaKart engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void setStaticVariables() throws com.konakart.app.KKException
setStaticVariables
in interface OrderTotalInterface
com.konakart.app.KKException
- an unexpected exception from the KonaKart enginepublic boolean isAvailable() throws com.konakart.app.KKException
isAvailable
in interface OrderTotalInterface
com.konakart.app.KKException
- an unexpected exception from the KonaKart enginepublic OrderTotal getOrderTotal(Order order, boolean dispPriceWithTax, java.util.Locale locale) throws java.lang.Exception
getOrderTotal
in interface OrderTotalInterface
order
- the orderdispPriceWithTax
- the dispPriceWithTaxlocale
- the localejava.lang.Exception
- an unexpected exceptionprotected OrderTotal getSingleOT(Order order, Tax.StaticData sd, java.util.ResourceBundle rb) throws java.lang.Exception
order
- the ordersd
- the sdrb
- the rbjava.lang.Exception
- an unexpected exceptionprotected OrderTotal getMultipleOT(Order order, Tax.StaticData sd, java.util.ResourceBundle rb) throws java.lang.Exception
order
- the ordersd
- the sdrb
- the rbjava.lang.Exception
- an unexpected exceptionprotected TaxRate[] getTaxRateObjects(Order order, OrderProductIf op, int taxClassId) throws java.lang.Exception
order
- the orderop
- the optaxClassId
- the taxClassIdjava.lang.Exception
- an unexpected exceptionprotected KKCriteria getNewCriteria(boolean allStores)
getNewCriteria
in class BaseModule
allStores
- the allStoresprotected boolean isMultiStoreShareCustomersOrProducts() throws com.konakart.app.KKException
isMultiStoreShareCustomersOrProducts
in class BaseModule
com.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected void getOrderCountryAndZone(Order order) throws java.lang.Exception
order
- the orderjava.lang.Exception
- an unexpected exceptionpublic int getSortOrder()
getSortOrder
in interface OrderTotalInterface
public java.lang.String getCode()
getCode
in interface OrderTotalInterface
public java.lang.String getModuleClassName()
BaseModule
getModuleClassName
in interface OrderTotalInterface
getModuleClassName
in class BaseModule
Copyright © 2018 DS Data Systems UK Ltd.