Interface LoteService

All Known Implementing Classes:
LoteServiceImpl

public interface LoteService
Service operations related to supply batch (lote) reception and traceability.
  • Method Details

    • recibirLote

      LoteResponse recibirLote(LoteCreateRequest request)
      Registers the reception of a new batch. Returns the persisted batch response.
    • listarPorInsumo

      List<LoteResponse> listarPorInsumo(Long insumoId)
      Lists all batches for a given insumo, ordered by expiry date ascending (nulls last).
    • obtenerPorId

      LoteResponse obtenerPorId(Long id)
      Retrieves a single batch by its ID. Throws NotFoundException if not found.