use of de.metas.handlingunits.pporder.api.IHUPPOrderQtyDAO in project metasfresh-webui-api by metasfresh.
the class WEBUI_PP_Order_HUEditor_ProcessBase method retrieveEligibleHUEditorRows.
protected static final Stream<HUEditorRow> retrieveEligibleHUEditorRows(@NonNull final Stream<HUEditorRow> inputStream) {
final SourceHUsService sourceHuService = SourceHUsService.get();
final IHUPPOrderQtyDAO huPpOrderQtyDAO = Services.get(IHUPPOrderQtyDAO.class);
return inputStream.filter(huRow -> huRow.isHUStatusActive()).filter(huRow -> !sourceHuService.isHuOrAnyParentSourceHu(huRow.getM_HU_ID())).filter(huRow -> !huPpOrderQtyDAO.isHuIdIssued(huRow.getM_HU_ID()));
}
Aggregations