Class InvoiceData

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

public class InvoiceData extends Object
A VO with all the data needed to create a PDF invoice with the NekoSoft PDF Invoice template.

Line item data is represented by the LineItemData class, with one instance per invoice item.

  • Constructor Details

    • InvoiceData

      public InvoiceData()
  • Method Details

    • getInvoiceNo

      public String getInvoiceNo()
      Gets the invoice number.
      Returns:
      the invoice number
    • setInvoiceNo

      public void setInvoiceNo(String invoiceNo)
      Sets the invoice number.
      Parameters:
      invoiceNo - the invoice number
    • getInvoiceDate

      public LocalDate getInvoiceDate()
      Gets the invoice date.
      Returns:
      the invoice date
    • setInvoiceDate

      public void setInvoiceDate(LocalDate invoiceDate)
      Sets the invoice date.
      Parameters:
      invoiceDate - the invoice date
    • getDueDate

      public LocalDate getDueDate()
      Gets the due date of the invoice.
      Returns:
      the due date
    • setDueDate

      public void setDueDate(LocalDate dueDate)
      Sets the due date of the invoice.
      Parameters:
      dueDate - the due date
    • getClient

      public String getClient()
      Gets the client name.
      Returns:
      the client name
    • setClient

      public void setClient(String client)
      Sets the client name.
      Parameters:
      client - the client name
    • getSender

      public String getSender()
      Gets the sender's name.
      Returns:
      the sender's name
    • setSender

      public void setSender(String sender)
      Sets the sender's name.
      Parameters:
      sender - the sender's name
    • getClientAddress

      public String getClientAddress()
      Gets the client's address.
      Returns:
      the client's address
    • setClientAddress

      public void setClientAddress(String clientAddress)
      Sets the client's address.
      Parameters:
      clientAddress - the client's address
    • getSenderAddress

      public String getSenderAddress()
      Gets the sender's address.
      Returns:
      the sender's address
    • setSenderAddress

      public void setSenderAddress(String senderAddress)
      Sets the sender's address.
      Parameters:
      senderAddress - the sender's address
    • getClientEmail

      public String getClientEmail()
      Gets the client's email.
      Returns:
      the client's email
    • setClientEmail

      public void setClientEmail(String clientEmail)
      Sets the client's email.
      Parameters:
      clientEmail - the client's email
    • getSenderEmail

      public String getSenderEmail()
      Gets the sender's email.
      Returns:
      the sender's email
    • setSenderEmail

      public void setSenderEmail(String senderEmail)
      Sets the sender's email.
      Parameters:
      senderEmail - the sender's email
    • getClientTaxCode

      public String getClientTaxCode()
      Gets the client's tax code.
      Returns:
      the client's tax code
    • setClientTaxCode

      public void setClientTaxCode(String clientTaxCode)
      Sets the client's tax code.
      Parameters:
      clientTaxCode - the client's tax code
    • getSenderTaxCode

      public String getSenderTaxCode()
      Gets the sender's tax code.
      Returns:
      the sender's tax code
    • setSenderTaxCode

      public void setSenderTaxCode(String senderTaxCode)
      Sets the sender's tax code.
      Parameters:
      senderTaxCode - the sender's tax code
    • getCurrency

      public String getCurrency()
      Gets the invoice currency.
      Returns:
      the invoice currency
    • setCurrency

      public void setCurrency(String currency)
      Sets the invoice currency.
      Parameters:
      currency - the invoice currency
    • getLineItems

      public List<LineItemData> getLineItems()
      Gets the line items.
      Returns:
      the line items
    • setLineItems

      public void setLineItems(List<LineItemData> lineItems)
      Sets the line items.
      Parameters:
      lineItems - the line items
    • getFooter1

      public String getFooter1()
      Gets the first line of the footer.
      Returns:
      the first line of the footer
    • setFooter1

      public void setFooter1(String footer1)
      Sets the first line of the footer.
      Parameters:
      footer1 - the first line of the footer
    • getFooter2

      public String getFooter2()
      Gets the second line of the footer.
      Returns:
      the second line of the footer
    • setFooter2

      public void setFooter2(String footer2)
      Sets the second line of the footer.
      Parameters:
      footer2 - the second line of the footer
    • getBankDetails

      public String getBankDetails()
      Gets the bank details.
      Returns:
      the bank details
    • setBankDetails

      public void setBankDetails(String bankDetails)
      Sets the bank details.
      Parameters:
      bankDetails - the bank details
    • getSubtotal

      public double getSubtotal()
      Calculates the subtotal of the invoice.
      Returns:
      the subtotal
    • getTaxSubtotals

      public Map<String,​Double> getTaxSubtotals()
      Calculates the tax subtotals for each line item tax type.
      Returns:
      the tax subtotals
    • getTotal

      public double getTotal()
      Calculates the total of the invoice.
      Returns:
      the total