Class InvoiceData
java.lang.Object
org.nekosoft.PDFferTemplates.invoice.InvoiceData
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the bank details.Gets the client name.Gets the client's address.Gets the client's email.Gets the client's tax code.Gets the invoice currency.Gets the due date of the invoice.Gets the first line of the footer.Gets the second line of the footer.Gets the invoice date.Gets the invoice number.Gets the line items.Gets the sender's name.Gets the sender's address.Gets the sender's email.Gets the sender's tax code.double
Calculates the subtotal of the invoice.Calculates the tax subtotals for each line item tax type.double
getTotal()
Calculates the total of the invoice.void
setBankDetails(String bankDetails)
Sets the bank details.void
Sets the client name.void
setClientAddress(String clientAddress)
Sets the client's address.void
setClientEmail(String clientEmail)
Sets the client's email.void
setClientTaxCode(String clientTaxCode)
Sets the client's tax code.void
setCurrency(String currency)
Sets the invoice currency.void
setDueDate(LocalDate dueDate)
Sets the due date of the invoice.void
setFooter1(String footer1)
Sets the first line of the footer.void
setFooter2(String footer2)
Sets the second line of the footer.void
setInvoiceDate(LocalDate invoiceDate)
Sets the invoice date.void
setInvoiceNo(String invoiceNo)
Sets the invoice number.void
setLineItems(List<LineItemData> lineItems)
Sets the line items.void
Sets the sender's name.void
setSenderAddress(String senderAddress)
Sets the sender's address.void
setSenderEmail(String senderEmail)
Sets the sender's email.void
setSenderTaxCode(String senderTaxCode)
Sets the sender's tax code.
-
Constructor Details
-
InvoiceData
public InvoiceData()
-
-
Method Details
-
getInvoiceNo
Gets the invoice number.- Returns:
- the invoice number
-
setInvoiceNo
Sets the invoice number.- Parameters:
invoiceNo
- the invoice number
-
getInvoiceDate
Gets the invoice date.- Returns:
- the invoice date
-
setInvoiceDate
Sets the invoice date.- Parameters:
invoiceDate
- the invoice date
-
getDueDate
Gets the due date of the invoice.- Returns:
- the due date
-
setDueDate
Sets the due date of the invoice.- Parameters:
dueDate
- the due date
-
getClient
Gets the client name.- Returns:
- the client name
-
setClient
Sets the client name.- Parameters:
client
- the client name
-
getSender
Gets the sender's name.- Returns:
- the sender's name
-
setSender
Sets the sender's name.- Parameters:
sender
- the sender's name
-
getClientAddress
Gets the client's address.- Returns:
- the client's address
-
setClientAddress
Sets the client's address.- Parameters:
clientAddress
- the client's address
-
getSenderAddress
Gets the sender's address.- Returns:
- the sender's address
-
setSenderAddress
Sets the sender's address.- Parameters:
senderAddress
- the sender's address
-
getClientEmail
Gets the client's email.- Returns:
- the client's email
-
setClientEmail
Sets the client's email.- Parameters:
clientEmail
- the client's email
-
getSenderEmail
Gets the sender's email.- Returns:
- the sender's email
-
setSenderEmail
Sets the sender's email.- Parameters:
senderEmail
- the sender's email
-
getClientTaxCode
Gets the client's tax code.- Returns:
- the client's tax code
-
setClientTaxCode
Sets the client's tax code.- Parameters:
clientTaxCode
- the client's tax code
-
getSenderTaxCode
Gets the sender's tax code.- Returns:
- the sender's tax code
-
setSenderTaxCode
Sets the sender's tax code.- Parameters:
senderTaxCode
- the sender's tax code
-
getCurrency
Gets the invoice currency.- Returns:
- the invoice currency
-
setCurrency
Sets the invoice currency.- Parameters:
currency
- the invoice currency
-
getLineItems
Gets the line items.- Returns:
- the line items
-
setLineItems
Sets the line items.- Parameters:
lineItems
- the line items
-
getBankDetails
Gets the bank details.- Returns:
- the bank details
-
setBankDetails
Sets the bank details.- Parameters:
bankDetails
- the bank details
-
getSubtotal
public double getSubtotal()Calculates the subtotal of the invoice.- Returns:
- the subtotal
-
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
-