Klasse InvoicesHandler

java.lang.Object
de.bytestore.hostinger.handler.InvoicesHandler

public class InvoicesHandler extends Object
  • Konstruktordetails

    • InvoicesHandler

      public InvoicesHandler()
  • Methodendetails

    • generatePDF

      public static void generatePDF(io.jmix.core.DataManager managerIO, Invoices invoiceIO)
      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

      public static String generateContent(io.jmix.core.DataManager managerIO, Invoices invoiceIO)
      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

      public static Integer getProductsCount(io.jmix.core.DataManager manager, Invoices invoices)
      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

      public static double getProductsPrice(io.jmix.core.DataManager manager, Invoices invoices)
      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

      public static boolean exitsInDb(io.jmix.core.DataManager manager, Invoices entity)
      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

      public static String getInvoicePath(Invoices invoiceIO)