use of de.metas.handlingunits.pporder.api.IHUPPOrderBL in project metasfresh-webui-api by metasfresh.
the class PPOrderLinesLoader method computePackingInfo.
private String computePackingInfo(@NonNull final I_PP_Order ppOrder) {
final IHUPPOrderBL huPPOrderBL = Services.get(IHUPPOrderBL.class);
final I_M_HU_LUTU_Configuration lutuConfig = huPPOrderBL.createReceiptLUTUConfigurationManager(ppOrder).getCreateLUTUConfiguration();
return extractPackingInfoString(lutuConfig);
}
use of de.metas.handlingunits.pporder.api.IHUPPOrderBL in project metasfresh-webui-api by metasfresh.
the class PPOrderLinesLoader method computePackingInfo.
private String computePackingInfo(@NonNull final I_PP_Order_BOMLine ppOrderBOMLine) {
final IHUPPOrderBL huPPOrderBL = Services.get(IHUPPOrderBL.class);
final I_M_HU_LUTU_Configuration lutuConfig = huPPOrderBL.createReceiptLUTUConfigurationManager(ppOrderBOMLine).getCreateLUTUConfiguration();
return extractPackingInfoString(lutuConfig);
}
use of de.metas.handlingunits.pporder.api.IHUPPOrderBL in project metasfresh-webui-api by metasfresh.
the class WEBUI_PP_Order_HUEditor_Launcher method retrieveHuIdsToShowInEditor.
private List<Integer> retrieveHuIdsToShowInEditor(final int ppOrderBomLineId) {
final I_PP_Order_BOMLine ppOrderBomLine = load(ppOrderBomLineId, I_PP_Order_BOMLine.class);
final IHUPPOrderBL huppOrderBL = Services.get(IHUPPOrderBL.class);
final IHUQueryBuilder huIdsToAvailableToIssueQuery = huppOrderBL.createHUsAvailableToIssueQuery(ppOrderBomLine);
final List<Integer> availableHUsIDs = huIdsToAvailableToIssueQuery.createQuery().listIds().stream().filter(huId -> !SourceHUsService.get().isHuOrAnyParentSourceHu(huId)).filter(huId -> !Services.get(IHUPPOrderQtyDAO.class).isHuIdIssued(huId)).collect(ImmutableList.toImmutableList());
return availableHUsIDs;
}
Aggregations