Package de.bytestore.hostinger.handler
Klasse InvoicesHandler
java.lang.Object
de.bytestore.hostinger.handler.InvoicesHandler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic booleanThis method checks if the given entity exists in the database.static StringgenerateContent(io.jmix.core.DataManager managerIO, Invoices invoiceIO) Generates content for the PDF invoice using the provided DataManager and Invoices objects.static voidgeneratePDF(io.jmix.core.DataManager managerIO, Invoices invoiceIO) Generates a PDF invoice using the provided DataManager and Invoices objects.static StringgetInvoicePath(Invoices invoiceIO) static IntegergetProductsCount(io.jmix.core.DataManager manager, Invoices invoices) This method retrieves the total count of products for a specific invoice.static List<InvoiceProducts>getProductsFor(io.jmix.core.DataManager manager, Invoices entity) This method retrieves a list of invoice products associated with a given invoice entity from the database.static doublegetProductsPrice(io.jmix.core.DataManager manager, Invoices invoices) This method calculates the total price of products for a specific invoice.
-
Konstruktordetails
-
InvoicesHandler
public InvoicesHandler()
-
-
Methodendetails
-
generatePDF
Generates a PDF invoice using the provided DataManager and Invoices objects.- Parameter:
managerIO- The DataManager object used to generate the invoice content.invoiceIO- The Invoices object representing the invoice to be generated.
-
generateContent
Generates content for the PDF invoice using the provided DataManager and Invoices objects.- Parameter:
managerIO- The DataManager object used to retrieve invoice products.invoiceIO- The Invoices object representing the invoice.- Gibt zurück:
- The HTML content for the PDF invoice.
-
getProductsCount
This method retrieves the total count of products for a specific invoice.- Parameter:
manager- The data manager for retrieving data from the database.invoices- The invoice for which the product count needs to be determined.- Gibt zurück:
- The total count of products for the specified invoice.
-
getProductsPrice
This method calculates the total price of products for a specific invoice.- Parameter:
manager- The data manager for retrieving data from the database.invoices- The invoice for which the product price needs to be calculated.- Gibt zurück:
- The total price of products for the specified invoice.
-
exitsInDb
This method checks if the given entity exists in the database.- Parameter:
manager- The data manager for accessing the database.entity- The entity to check for existence in the database.- Gibt zurück:
- true if the entity exists in the database, false otherwise.
-
getProductsFor
public static List<InvoiceProducts> getProductsFor(io.jmix.core.DataManager manager, Invoices entity) This method retrieves a list of invoice products associated with a given invoice entity from the database.- Parameter:
manager- The data manager for accessing the database.entity- The invoice entity to retrieve products for.- Gibt zurück:
- A list of invoice products associated with the given invoice entity.
-
getInvoicePath
-