Class WarehouseMaterialStock
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.inventory.bl.warehouse.materialstock.WarehouseMaterialStock
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
DynO object representing an aggregation of stock.
The stock can be aggregated by three attributes:
These attributes can be set at the same time, generating a more specific aggregation, or they can be null, meaning that the stock is not aggregated by that element.
The stock quantity attribute portrays the total sum of all aggregated stocks.
The stock can be aggregated by three attributes:
- material
- warehouse
- stock type
These attributes can be set at the same time, generating a more specific aggregation, or they can be null, meaning that the stock is not aggregated by that element.
The stock quantity attribute portrays the total sum of all aggregated stocks.
- Since:
- 13.0
- See Also:
- GCApi:
- bo
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the material expected quantity.Returns the material id.Returns the aggregated stock quantity.Returns the stock type id.getType()Returns the aggregation type basing on the aggregation's attributes.Returns the warehouse id.voidsetExpectedQuantity(Double expectedQuantity) Sets the material expected quantity.voidsetMaterial(Long material) Sets the material id.voidsetQuantity(Double quantity) Sets the aggregated stock quantity.voidsetStockType(Long stockType) Sets the stock type id.voidsetWarehouse(Long warehouse) Sets the warehouse id.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Constructor Details
-
WarehouseMaterialStock
public WarehouseMaterialStock()
-
-
Method Details
-
getMaterial
Returns the material id.- Returns:
- the material id
- See Also:
-
setMaterial
Sets the material id.- Parameters:
material- the material id- See Also:
-
getWarehouse
Returns the warehouse id.- Returns:
- the warehouse material stock warehouse id
- See Also:
-
setWarehouse
Sets the warehouse id.- Parameters:
warehouse- the warehouse id- See Also:
-
getStockType
Returns the stock type id.- Returns:
- the stock type id.
- See Also:
-
setStockType
Sets the stock type id.- Parameters:
stockType- the stock type id- See Also:
-
getQuantity
Returns the aggregated stock quantity.- Returns:
- the aggregated stock quantity
-
setQuantity
Sets the aggregated stock quantity.- Parameters:
quantity- the aggregated stock quantity
-
getType
Returns the aggregation type basing on the aggregation's attributes. The default aggregation type is theWarehouseMaterialStockType.MATERIAL.- Returns:
- the aggreggation type
-
getExpectedQuantity
Returns the material expected quantity.- Returns:
- the material expected quantity
-
setExpectedQuantity
Sets the material expected quantity.- Parameters:
expectedQuantity- the material expected quantity
-