Package com.deusto.coffeestack.service
Interface LoteService
- All Known Implementing Classes:
LoteServiceImpl
public interface LoteService
Service operations related to supply batch (lote) reception and traceability.
-
Method Summary
Modifier and TypeMethodDescriptionlistarPorInsumo(Long insumoId) Lists all batches for a given insumo, ordered by expiry date ascending (nulls last).obtenerPorId(Long id) Retrieves a single batch by its ID.recibirLote(LoteCreateRequest request) Registers the reception of a new batch.
-
Method Details
-
recibirLote
Registers the reception of a new batch. Returns the persisted batch response. -
listarPorInsumo
Lists all batches for a given insumo, ordered by expiry date ascending (nulls last). -
obtenerPorId
Retrieves a single batch by its ID. Throws NotFoundException if not found.
-