use of de.metas.handlingunits.sourcehu.SourceHUsService 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()));
}
use of de.metas.handlingunits.sourcehu.SourceHUsService in project metasfresh-webui-api by metasfresh.
the class WEBUI_Picking_HUEditor_Create_M_Source_HUs method doIt.
@Override
protected String doIt() throws Exception {
final SourceHUsService sourceHuService = SourceHUsService.get();
retrieveEligibleHUEditorRows().forEach(huEditorRow -> {
sourceHuService.addSourceHuMarker(huEditorRow.getM_HU_ID());
});
invalidateAndGoBackToPickingSlotsView();
return MSG_OK;
}
Aggregations