Search in sources :

Example 1 with IHUPPOrderBL

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);
}
Also used : IHUPPOrderBL(de.metas.handlingunits.pporder.api.IHUPPOrderBL) I_M_HU_LUTU_Configuration(de.metas.handlingunits.model.I_M_HU_LUTU_Configuration)

Example 2 with IHUPPOrderBL

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);
}
Also used : IHUPPOrderBL(de.metas.handlingunits.pporder.api.IHUPPOrderBL) I_M_HU_LUTU_Configuration(de.metas.handlingunits.model.I_M_HU_LUTU_Configuration)

Example 3 with IHUPPOrderBL

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;
}
Also used : I_PP_Order_BOMLine(org.eevolution.model.I_PP_Order_BOMLine) IHUPPOrderBL(de.metas.handlingunits.pporder.api.IHUPPOrderBL) Env(org.compiere.util.Env) Autowired(org.springframework.beans.factory.annotation.Autowired) StringUtils(org.adempiere.util.StringUtils) JSONViewDataType(de.metas.ui.web.view.json.JSONViewDataType) PPOrderLineRow(de.metas.ui.web.pporder.PPOrderLineRow) ImmutableList(com.google.common.collect.ImmutableList) IView(de.metas.ui.web.view.IView) IHUQueryBuilder(de.metas.handlingunits.IHUQueryBuilder) IProcessPrecondition(de.metas.process.IProcessPrecondition) IADProcessDAO(de.metas.process.IADProcessDAO) IHUPPOrderQtyDAO(de.metas.handlingunits.pporder.api.IHUPPOrderQtyDAO) ViewBasedProcessTemplate(de.metas.ui.web.process.adprocess.ViewBasedProcessTemplate) RelatedProcessDescriptor(de.metas.process.RelatedProcessDescriptor) PPOrderLinesView(de.metas.ui.web.pporder.PPOrderLinesView) SourceHUsService(de.metas.handlingunits.sourcehu.SourceHUsService) HUIdsFilterHelper(de.metas.ui.web.handlingunits.HUIdsFilterHelper) ProcessPreconditionsResolution(de.metas.process.ProcessPreconditionsResolution) Services(org.adempiere.util.Services) List(java.util.List) InterfaceWrapperHelper.load(org.adempiere.model.InterfaceWrapperHelper.load) CreateViewRequest(de.metas.ui.web.view.CreateViewRequest) WEBUI_HU_Constants(de.metas.ui.web.handlingunits.WEBUI_HU_Constants) IViewsRepository(de.metas.ui.web.view.IViewsRepository) ViewId(de.metas.ui.web.view.ViewId) IHUPPOrderBL(de.metas.handlingunits.pporder.api.IHUPPOrderBL) IHUQueryBuilder(de.metas.handlingunits.IHUQueryBuilder) I_PP_Order_BOMLine(org.eevolution.model.I_PP_Order_BOMLine)

Aggregations

IHUPPOrderBL (de.metas.handlingunits.pporder.api.IHUPPOrderBL)3 I_M_HU_LUTU_Configuration (de.metas.handlingunits.model.I_M_HU_LUTU_Configuration)2 ImmutableList (com.google.common.collect.ImmutableList)1 IHUQueryBuilder (de.metas.handlingunits.IHUQueryBuilder)1 IHUPPOrderQtyDAO (de.metas.handlingunits.pporder.api.IHUPPOrderQtyDAO)1 SourceHUsService (de.metas.handlingunits.sourcehu.SourceHUsService)1 IADProcessDAO (de.metas.process.IADProcessDAO)1 IProcessPrecondition (de.metas.process.IProcessPrecondition)1 ProcessPreconditionsResolution (de.metas.process.ProcessPreconditionsResolution)1 RelatedProcessDescriptor (de.metas.process.RelatedProcessDescriptor)1 HUIdsFilterHelper (de.metas.ui.web.handlingunits.HUIdsFilterHelper)1 WEBUI_HU_Constants (de.metas.ui.web.handlingunits.WEBUI_HU_Constants)1 PPOrderLineRow (de.metas.ui.web.pporder.PPOrderLineRow)1 PPOrderLinesView (de.metas.ui.web.pporder.PPOrderLinesView)1 ViewBasedProcessTemplate (de.metas.ui.web.process.adprocess.ViewBasedProcessTemplate)1 CreateViewRequest (de.metas.ui.web.view.CreateViewRequest)1 IView (de.metas.ui.web.view.IView)1 IViewsRepository (de.metas.ui.web.view.IViewsRepository)1 ViewId (de.metas.ui.web.view.ViewId)1 JSONViewDataType (de.metas.ui.web.view.json.JSONViewDataType)1