Class InvoiceProduct
java.lang.Object
de.bytestore.hostinger.entity.ecommerce.InvoiceProduct
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalculates the amount of the invoice product by multiplying the amount with the price of the product.
-
Constructor Details
-
InvoiceProduct
public InvoiceProduct()
-
-
Method Details
-
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.
-