Class LineItemData
java.lang.Object
org.nekosoft.PDFferTemplates.invoice.LineItemData
A VO for each line item in a PDF invoice.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the description.doubleCalculates the item total.intGets the quantity.Gets the tax name.doubleGets the tax rate.doubleCalculates the tax total.Gets the unit format.doubleGets the unit price.voidsetDescription(String description)Sets the description.voidsetQuantity(int quantity)Sets the quantity.voidsetTaxName(String taxName)Sets the tax name.voidsetTaxRate(double taxRate)Sets the tax rate.voidsetUnitFormat(String unitFormat)Sets the unit format.voidsetUnitPrice(double unitPrice)Sets the unit price.
- 
Constructor Details- 
LineItemDatapublic LineItemData()
 
- 
- 
Method Details- 
getUnitFormatGets the unit format. SeesetUnitFormat(String).- Returns:
- the unit format
 
- 
setUnitFormatSets the unit format. This will be used with theString.formatmethod to display the quantity in the invoice. It needs to include one format specifier for an integer value (%d), which will replaced with thequantity.- Parameters:
- unitFormat- the unit format
 
- 
getDescriptionGets the description.- Returns:
- the description
 
- 
setDescriptionSets the description.- Parameters:
- description- the description
 
- 
getQuantitypublic int getQuantity()Gets the quantity.- Returns:
- the quantity
 
- 
setQuantitypublic void setQuantity(int quantity)Sets the quantity. Also seesetUnitFormat(String).- Parameters:
- quantity- the quantity
 
- 
getUnitPricepublic double getUnitPrice()Gets the unit price.- Returns:
- the unit price
 
- 
setUnitPricepublic void setUnitPrice(double unitPrice)Sets the unit price.- Parameters:
- unitPrice- the unit price
 
- 
getTaxNameGets the tax name.- Returns:
- the tax name
 
- 
setTaxNameSets the tax name.- Parameters:
- taxName- the tax name
 
- 
getTaxRatepublic double getTaxRate()Gets the tax rate.- Returns:
- the tax rate
 
- 
setTaxRatepublic void setTaxRate(double taxRate)Sets the tax rate.- Parameters:
- taxRate- the tax rate
 
- 
getItemTotalpublic double getItemTotal()Calculates the item total.- Returns:
- the item total
 
- 
getTaxTotalpublic double getTaxTotal()Calculates the tax total.- Returns:
- the tax total
 
 
-