Package com.deusto.coffeestack.domain
Class Lote
java.lang.Object
com.deusto.coffeestack.domain.Lote
Lote represents a specific batch of an
Insumo.
Each batch tracks its current available quantity and optional expiry date.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetId()voidsetCantidadActual(double cantidadActual) voidsetCantidadInicial(double cantidadInicial) voidsetFechaVencimiento(LocalDate fechaVencimiento) voidvoidvoidsetNumeroLote(String numeroLote) voidsetPrecioCompra(BigDecimal precioCompra) voidsetProveedor(Proveedor proveedor) booleanConvenience: returns true when this batch still has stock available.
-
Constructor Details
-
Lote
public Lote()
-
-
Method Details
-
getId
-
setId
-
getInsumo
-
setInsumo
-
getProveedor
-
setProveedor
-
getNumeroLote
-
setNumeroLote
-
getCantidadInicial
public double getCantidadInicial() -
setCantidadInicial
public void setCantidadInicial(double cantidadInicial) -
getCantidadActual
public double getCantidadActual() -
setCantidadActual
public void setCantidadActual(double cantidadActual) -
getFechaVencimiento
-
setFechaVencimiento
-
getPrecioCompra
-
setPrecioCompra
-
tieneStock
public boolean tieneStock()Convenience: returns true when this batch still has stock available.
-