Class InvoiceProduct

java.lang.Object
de.bytestore.hostinger.entity.ecommerce.InvoiceProduct

@Entity(name="host_InvoiceProducts") public class InvoiceProduct extends Object
Represents a product associated with an invoice. This entity is used to store information about the products included in an invoice, including their quantities, tax, and other details. This class is annotated with Jmix and persistence-related annotations for inclusion in the data model and database. Attributes: - Each invoice product is uniquely identified by a UUID. - Links to an Invoice and a Product entity via a many-to-one relationship. - Supports details such as tax, custom descriptions, and creation/modification metadata.
  • Constructor Details

    • InvoiceProduct

      public InvoiceProduct()
  • Method Details

    • calculateAmount

      public BigDecimal calculateAmount()
      Calculates the amount of the invoice product by multiplying the amount with the price of the product.
      Returns:
      The calculated amount as a BigDecimal.