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.Object
public java.lang.String getClassName()
OrderTotalIf
getClassName
in interface OrderTotalIf
public void setClassName(java.lang.String className)
OrderTotalIf
setClassName
in interface OrderTotalIf
className
- The className to set.public int getId()
getId
in interface OrderTotalIf
public void setId(int id)
setId
in interface OrderTotalIf
id
- The id to set.public int getOrderId()
OrderTotalIf
getOrderId
in interface OrderTotalIf
public void setOrderId(int orderId)
OrderTotalIf
setOrderId
in interface OrderTotalIf
orderId
- The orderId to set.public int getSortOrder()
OrderTotalIf
getSortOrder
in interface OrderTotalIf
public void setSortOrder(int sortOrder)
OrderTotalIf
setSortOrder
in interface OrderTotalIf
sortOrder
- The sortOrder to set.public java.lang.String getText()
OrderTotalIf
getText
in interface OrderTotalIf
public void setText(java.lang.String text)
OrderTotalIf
setText
in interface OrderTotalIf
text
- The text to set.public java.lang.String getTitle()
OrderTotalIf
getTitle
in interface OrderTotalIf
public void setTitle(java.lang.String title)
OrderTotalIf
setTitle
in interface OrderTotalIf
title
- The title to set.public java.math.BigDecimal getValue()
OrderTotalIf
getValue
in interface OrderTotalIf
public void setValue(java.math.BigDecimal value)
OrderTotalIf
setValue
in interface OrderTotalIf
value
- The value to set.public PromotionIf[] getPromotions()
OrderTotalIf
getPromotions
in interface OrderTotalIf
public void setPromotions(PromotionIf[] promotions)
OrderTotalIf
setPromotions
in interface OrderTotalIf
promotions
- The promotions to set.public OrderTotalIf[] getOrderTotals()
OrderTotalIf
getOrderTotals
in interface OrderTotalIf
public void setOrderTotals(OrderTotalIf[] orderTotals)
OrderTotalIf
setOrderTotals
in interface OrderTotalIf
orderTotals
- the orderTotals to setpublic java.lang.String getCustom1()
getCustom1
in interface OrderTotalIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface OrderTotalIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface OrderTotalIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface OrderTotalIf
custom2
- the custom2 to setpublic java.lang.String getCustom3()
getCustom3
in interface OrderTotalIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface OrderTotalIf
custom3
- the custom3 to setpublic java.math.BigDecimal getTax()
OrderTotalIf
getTax
in interface OrderTotalIf
public void setTax(java.math.BigDecimal tax)
OrderTotalIf
setTax
in interface OrderTotalIf
tax
- the tax to setpublic java.lang.String getCustom4()
getCustom4
in interface OrderTotalIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface OrderTotalIf
custom4
- the custom4 to setpublic java.lang.String getCustom5()
getCustom5
in interface OrderTotalIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface OrderTotalIf
custom5
- the custom5 to setpublic int getPromotionId()
OrderTotalIf
getPromotionId
in interface OrderTotalIf
public void setPromotionId(int promotionId)
OrderTotalIf
setPromotionId
in interface OrderTotalIf
promotionId
- the promotionId to setpublic java.math.BigDecimal getDiscountAmount()
OrderTotalIf
getDiscountAmount
in interface OrderTotalIf
public void setDiscountAmount(java.math.BigDecimal discountAmount)
OrderTotalIf
setDiscountAmount
in interface OrderTotalIf
discountAmount
- the discountAmount to setpublic java.math.BigDecimal getDiscountPercent()
OrderTotalIf
getDiscountPercent
in interface OrderTotalIf
public void setDiscountPercent(java.math.BigDecimal discountPercent)
OrderTotalIf
setDiscountPercent
in interface OrderTotalIf
discountPercent
- the discountPercent to setpublic java.math.BigDecimal getTaxRate()
OrderTotalIf
getTaxRate
in interface OrderTotalIf
public void setTaxRate(java.math.BigDecimal taxRate)
OrderTotalIf
setTaxRate
in interface OrderTotalIf
taxRate
- the taxRate to setpublic java.lang.String getCode()
getCode
in interface OrderTotalIf
public void setCode(java.lang.String code)
setCode
in interface OrderTotalIf
code
- the code to setCopyright © 2018 DS Data Systems UK Ltd.