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

public class WarehouseMaterialStock extends DynO
DynO object representing an aggregation of stock.
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
  • Constructor Details

    • WarehouseMaterialStock

      public WarehouseMaterialStock()
  • Method Details

    • getMaterial

      public Long getMaterial()
      Returns the material id.
      Returns:
      the material id
      See Also:
    • setMaterial

      public void setMaterial(Long material)
      Sets the material id.
      Parameters:
      material - the material id
      See Also:
    • getWarehouse

      public Long getWarehouse()
      Returns the warehouse id.
      Returns:
      the warehouse material stock warehouse id
      See Also:
    • setWarehouse

      public void setWarehouse(Long warehouse)
      Sets the warehouse id.
      Parameters:
      warehouse - the warehouse id
      See Also:
    • getStockType

      public Long getStockType()
      Returns the stock type id.
      Returns:
      the stock type id.
      See Also:
    • setStockType

      public void setStockType(Long stockType)
      Sets the stock type id.
      Parameters:
      stockType - the stock type id
      See Also:
    • getQuantity

      public Double getQuantity()
      Returns the aggregated stock quantity.
      Returns:
      the aggregated stock quantity
    • setQuantity

      public void setQuantity(Double quantity)
      Sets the aggregated stock quantity.
      Parameters:
      quantity - the aggregated stock quantity
    • getType

      public WarehouseMaterialStockType getType()
      Returns the aggregation type basing on the aggregation's attributes. The default aggregation type is the WarehouseMaterialStockType.MATERIAL.
      Returns:
      the aggreggation type
    • getExpectedQuantity

      public Double getExpectedQuantity()
      Returns the material expected quantity.
      Returns:
      the material expected quantity
    • setExpectedQuantity

      public void setExpectedQuantity(Double expectedQuantity)
      Sets the material expected quantity.
      Parameters:
      expectedQuantity - the material expected quantity