|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.modules.BaseModule
com.konakart.bl.modules.ordertotal.BaseOrderTotalModule
com.konakart.bl.modules.ordertotal.productdiscount.ProductDiscount
public class ProductDiscount
Module that creates an OrderTotal object for applying a percentage discount or an amount discount on a single product normally because of a certain quantity is being purchased. The discount may be applied on prices before or after tax. The promotion may be activated on a product only if:
| Nested Class Summary | |
|---|---|
protected class |
ProductDiscount.StaticData
Used to store the static data of this module |
| Field Summary |
|---|
| Fields inherited from class com.konakart.bl.modules.ordertotal.BaseOrderTotalModule |
|---|
log, orderTotalList |
| Fields inherited from class com.konakart.bl.modules.BaseModule |
|---|
basePackage |
| Constructor Summary | |
|---|---|
ProductDiscount(KKEngIf eng)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getCode()
|
OrderTotal |
getOrderTotal(Order order,
boolean dispPriceWithTax,
java.util.Locale locale)
Create and return an OrderTotal object for the discount amount. |
PromotionResult |
getPromotionResult(Product product,
Promotion promotion)
Returns an object containing the promotion discount. |
int |
getSortOrder()
|
boolean |
isAvailable()
Returns true or false |
void |
setStaticVariables()
Sets some static variables during setup |
| Methods inherited from class com.konakart.bl.modules.ordertotal.BaseOrderTotalModule |
|---|
getCustomBigDecimal, getCustomBoolean, getCustomInt, getCustomString, getDiscountOrderTotalFromList, getOrderTotalList, setOrderTotalList |
| Methods inherited from class com.konakart.bl.modules.BaseModule |
|---|
getBasketMgr, getCatMgr, getConfigMgr, getCurrMgr, getCustMgr, getEmailMgr, getEng, getLangMgr, getMultiStoreMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getResourceBundle, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, init, isAvailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.konakart.bl.modules.ordertotal.OrderTotalInterface |
|---|
getOrderTotalList, setOrderTotalList |
| Constructor Detail |
|---|
public ProductDiscount(KKEngIf eng)
throws org.apache.torque.TorqueException,
KKException,
com.workingdogs.village.DataSetException
eng -
com.workingdogs.village.DataSetException
KKException
org.apache.torque.TorqueException| Method Detail |
|---|
public void setStaticVariables()
throws KKException
setStaticVariables in interface OrderTotalInterfaceKKException
public boolean isAvailable()
throws KKException
isAvailable in interface OrderTotalInterfaceKKException
public OrderTotal getOrderTotal(Order order,
boolean dispPriceWithTax,
java.util.Locale locale)
throws java.lang.Exception
Custom field usage:
getOrderTotal in interface OrderTotalInterfaceorder - dispPriceWithTax - locale -
java.lang.Exception
public PromotionResult getPromotionResult(Product product,
Promotion promotion)
throws java.lang.Exception
getPromotionResult in interface OrderTotalInterfacegetPromotionResult in class BaseOrderTotalModuleproduct - promotion -
java.lang.Exceptionpublic int getSortOrder()
getSortOrder in interface OrderTotalInterfacepublic java.lang.String getCode()
getCode in interface OrderTotalInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||