public class OrderTotal extends java.lang.Object implements OrderTotalIf
| Constructor and Description |
|---|
OrderTotal()
Constructor
|
OrderTotal(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Language object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
This is the name of the order total module.
|
OrderTotal |
getClone()
Creates a new clone OrderTotal object
|
java.lang.String |
getCode() |
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.math.BigDecimal |
getDiscountAmount()
The discount amount defined by the promotion.
|
java.math.BigDecimal |
getDiscountPercent()
The discount percentage defined by the promotion.
|
int |
getId() |
int |
getOrderId()
The id of the order that the order total belongs to
|
OrderTotalIf[] |
getOrderTotals()
An array of OrderTotals which is populated if the OrderTotal module returns more than one
result.
|
int |
getPromotionId()
The promotion id only when the order total contains the results of a promotion.
|
PromotionIf[] |
getPromotions()
An array to contain the promotion objects used to calculate the discount for a discount order
total module.
|
int |
getSortOrder()
The sort order defines the order in which the order total items are added to the order.
|
java.math.BigDecimal |
getTax()
In some cases an OrderTotal can modify the tax calculated for an order.
|
java.math.BigDecimal |
getTaxRate()
The tax rate applicable for the order total
|
java.lang.String |
getText()
This is the actual text for the value of the order total.
|
java.lang.String |
getTitle()
This is the title for the order total which will appear on a print out of the order.
|
java.math.BigDecimal |
getValue()
The value is a numeric representation of the text which can be used to add the order totals
in order to calculate the final total.
|
void |
setClassName(java.lang.String className)
This is the name of the order total module.
|
void |
setCode(java.lang.String code) |
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
void |
setDiscountAmount(java.math.BigDecimal discountAmount)
The discount amount defined by the promotion.
|
void |
setDiscountPercent(java.math.BigDecimal discountPercent)
The discount percentage defined by the promotion.
|
void |
setId(int id) |
void |
setOrderId(int orderId)
The id of the order that the order total belongs to
|
void |
setOrderTotals(OrderTotalIf[] orderTotals)
An array of OrderTotals which is populated if the OrderTotal module returns more than one
result.
|
void |
setPromotionId(int promotionId)
The promotion id only when the order total contains the results of a promotion.
|
void |
setPromotions(PromotionIf[] promotions)
An array to contain the promotion objects used to calculate the discount for a discount order
total module.
|
void |
setSortOrder(int sortOrder)
The sort order defines the order in which the order total items are added to the order.
|
void |
setTax(java.math.BigDecimal tax)
In some cases an OrderTotal can modify the tax calculated for an order.
|
void |
setTaxRate(java.math.BigDecimal taxRate)
The tax rate applicable for the order total
|
void |
setText(java.lang.String text)
This is the actual text for the value of the order total.
|
void |
setTitle(java.lang.String title)
This is the title for the order total which will appear on a print out of the order.
|
void |
setValue(java.math.BigDecimal value)
The value is a numeric representation of the text which can be used to add the order totals
in order to calculate the final total.
|
java.lang.String |
toString() |
public OrderTotal()
public OrderTotal(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public OrderTotal getClone()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getClassName()
OrderTotalIfgetClassName in interface OrderTotalIfpublic void setClassName(java.lang.String className)
OrderTotalIfsetClassName in interface OrderTotalIfclassName - The className to set.public int getId()
getId in interface OrderTotalIfpublic void setId(int id)
setId in interface OrderTotalIfid - The id to set.public int getOrderId()
OrderTotalIfgetOrderId in interface OrderTotalIfpublic void setOrderId(int orderId)
OrderTotalIfsetOrderId in interface OrderTotalIforderId - The orderId to set.public int getSortOrder()
OrderTotalIfgetSortOrder in interface OrderTotalIfpublic void setSortOrder(int sortOrder)
OrderTotalIfsetSortOrder in interface OrderTotalIfsortOrder - The sortOrder to set.public java.lang.String getText()
OrderTotalIfgetText in interface OrderTotalIfpublic void setText(java.lang.String text)
OrderTotalIfsetText in interface OrderTotalIftext - The text to set.public java.lang.String getTitle()
OrderTotalIfgetTitle in interface OrderTotalIfpublic void setTitle(java.lang.String title)
OrderTotalIfsetTitle in interface OrderTotalIftitle - The title to set.public java.math.BigDecimal getValue()
OrderTotalIfgetValue in interface OrderTotalIfpublic void setValue(java.math.BigDecimal value)
OrderTotalIfsetValue in interface OrderTotalIfvalue - The value to set.public PromotionIf[] getPromotions()
OrderTotalIfgetPromotions in interface OrderTotalIfpublic void setPromotions(PromotionIf[] promotions)
OrderTotalIfsetPromotions in interface OrderTotalIfpromotions - The promotions to set.public OrderTotalIf[] getOrderTotals()
OrderTotalIfgetOrderTotals in interface OrderTotalIfpublic void setOrderTotals(OrderTotalIf[] orderTotals)
OrderTotalIfsetOrderTotals in interface OrderTotalIforderTotals - the orderTotals to setpublic java.lang.String getCustom1()
getCustom1 in interface OrderTotalIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface OrderTotalIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
getCustom2 in interface OrderTotalIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface OrderTotalIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
getCustom3 in interface OrderTotalIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface OrderTotalIfcustom3 - the custom3 to setpublic java.math.BigDecimal getTax()
OrderTotalIfgetTax in interface OrderTotalIfpublic void setTax(java.math.BigDecimal tax)
OrderTotalIfsetTax in interface OrderTotalIftax - the tax to setpublic java.lang.String getCustom4()
getCustom4 in interface OrderTotalIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface OrderTotalIfcustom4 - the custom4 to setpublic java.lang.String getCustom5()
getCustom5 in interface OrderTotalIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface OrderTotalIfcustom5 - the custom5 to setpublic int getPromotionId()
OrderTotalIfgetPromotionId in interface OrderTotalIfpublic void setPromotionId(int promotionId)
OrderTotalIfsetPromotionId in interface OrderTotalIfpromotionId - the promotionId to setpublic java.math.BigDecimal getDiscountAmount()
OrderTotalIfgetDiscountAmount in interface OrderTotalIfpublic void setDiscountAmount(java.math.BigDecimal discountAmount)
OrderTotalIfsetDiscountAmount in interface OrderTotalIfdiscountAmount - the discountAmount to setpublic java.math.BigDecimal getDiscountPercent()
OrderTotalIfgetDiscountPercent in interface OrderTotalIfpublic void setDiscountPercent(java.math.BigDecimal discountPercent)
OrderTotalIfsetDiscountPercent in interface OrderTotalIfdiscountPercent - the discountPercent to setpublic java.math.BigDecimal getTaxRate()
OrderTotalIfgetTaxRate in interface OrderTotalIfpublic void setTaxRate(java.math.BigDecimal taxRate)
OrderTotalIfsetTaxRate in interface OrderTotalIftaxRate - the taxRate to setpublic java.lang.String getCode()
getCode in interface OrderTotalIfpublic void setCode(java.lang.String code)
setCode in interface OrderTotalIfcode - the code to setCopyright © 2018 DS Data Systems UK Ltd.