Package co.mastermindcms.modules.beans
Class Inventory
- java.lang.Object
-
- co.mastermindcms.modules.beans.Inventory
-
- All Implemented Interfaces:
java.io.Serializable
@TypeAlias("Inventory") public class Inventory extends java.lang.Object implements java.io.SerializableThis entity stores the quantity data offered for sale.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.DoublecountPerUnitprivate EmbeddedBeanembeddedSellerSKUprivate java.lang.Stringidprivate java.lang.DoublelockedQuantityprivate java.lang.DoubleminOrderprivate java.lang.Doublequantitystatic java.lang.StringSEQUENCE_NAME
-
Constructor Summary
Constructors Constructor Description Inventory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalculateFreeQuantity()booleandecreaseLockedQuantity(java.lang.Double value)booleandecreaseQuantity(java.lang.Double value)booleanincreaseLockedQuantity(java.lang.Double value)
-
-
-
Field Detail
-
id
private java.lang.String id
-
countPerUnit
private java.lang.Double countPerUnit
-
minOrder
private java.lang.Double minOrder
-
quantity
private java.lang.Double quantity
-
lockedQuantity
private java.lang.Double lockedQuantity
-
embeddedSellerSKU
private EmbeddedBean embeddedSellerSKU
-
SEQUENCE_NAME
public static final java.lang.String SEQUENCE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
increaseLockedQuantity
public boolean increaseLockedQuantity(java.lang.Double value)
-
decreaseLockedQuantity
public boolean decreaseLockedQuantity(java.lang.Double value)
-
decreaseQuantity
public boolean decreaseQuantity(java.lang.Double value)
-
calculateFreeQuantity
public double calculateFreeQuantity()
-
-