Class LineItemData

java.lang.Object
org.nekosoft.PDFferTemplates.invoice.LineItemData

public class LineItemData extends Object
A VO for each line item in a PDF invoice.
  • Constructor Details

    • LineItemData

      public LineItemData()
  • Method Details

    • getUnitFormat

      public String getUnitFormat()
      Gets the unit format. See setUnitFormat(String).
      Returns:
      the unit format
    • setUnitFormat

      public void setUnitFormat(String unitFormat)
      Sets the unit format. This will be used with the String.format method to display the quantity in the invoice. It needs to include one format specifier for an integer value (%d), which will replaced with the quantity.
      Parameters:
      unitFormat - the unit format
    • getDescription

      public String getDescription()
      Gets the description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the description.
      Parameters:
      description - the description
    • getQuantity

      public int getQuantity()
      Gets the quantity.
      Returns:
      the quantity
    • setQuantity

      public void setQuantity(int quantity)
      Sets the quantity. Also see setUnitFormat(String).
      Parameters:
      quantity - the quantity
    • getUnitPrice

      public double getUnitPrice()
      Gets the unit price.
      Returns:
      the unit price
    • setUnitPrice

      public void setUnitPrice(double unitPrice)
      Sets the unit price.
      Parameters:
      unitPrice - the unit price
    • getTaxName

      public String getTaxName()
      Gets the tax name.
      Returns:
      the tax name
    • setTaxName

      public void setTaxName(String taxName)
      Sets the tax name.
      Parameters:
      taxName - the tax name
    • getTaxRate

      public double getTaxRate()
      Gets the tax rate.
      Returns:
      the tax rate
    • setTaxRate

      public void setTaxRate(double taxRate)
      Sets the tax rate.
      Parameters:
      taxRate - the tax rate
    • getItemTotal

      public double getItemTotal()
      Calculates the item total.
      Returns:
      the item total
    • getTaxTotal

      public double getTaxTotal()
      Calculates the tax total.
      Returns:
      the tax total