Search in sources :

Example 21 with PickingSlotRow

use of de.metas.ui.web.picking.pickingslot.PickingSlotRow in project metasfresh-webui-api by metasfresh.

the class WEBUI_PickingSlotsClearingView_TakeOutHUAndAddToNewHU method createHUProducer.

private IHUProducerAllocationDestination createHUProducer(@NonNull final I_M_HU fromHU) {
    final PickingSlotRow pickingRow = getRootRowForSelectedPickingSlotRows();
    final IHUStorageFactory storageFactory = Services.get(IHandlingUnitsBL.class).getStorageFactory();
    final IHUStorage storage = storageFactory.getStorage(fromHU);
    final I_M_Product singleProduct = storage.getSingleProductOrNull();
    final LUTUProducerDestination lutuProducerDestination = createNewHUProducer(pickingRow, targetHUPI);
    lutuProducerDestination.addCUPerTU(singleProduct, qtyCU, singleProduct.getC_UOM());
    return lutuProducerDestination;
}
Also used : PickingSlotRow(de.metas.ui.web.picking.pickingslot.PickingSlotRow) IHandlingUnitsBL(de.metas.handlingunits.IHandlingUnitsBL) I_M_Product(org.compiere.model.I_M_Product) IHUStorageFactory(de.metas.handlingunits.storage.IHUStorageFactory) IHUStorage(de.metas.handlingunits.storage.IHUStorage) LUTUProducerDestination(de.metas.handlingunits.allocation.transfer.impl.LUTUProducerDestination)

Aggregations

PickingSlotRow (de.metas.ui.web.picking.pickingslot.PickingSlotRow)21 I_M_HU (de.metas.handlingunits.model.I_M_HU)6 HUEditorRow (de.metas.ui.web.handlingunits.HUEditorRow)4 PickingCandidateService (de.metas.handlingunits.picking.PickingCandidateService)2 HUToReportWrapper (de.metas.handlingunits.report.HUToReportWrapper)2 IProcessPrecondition (de.metas.process.IProcessPrecondition)2 ProcessPreconditionsResolution (de.metas.process.ProcessPreconditionsResolution)2 DocumentIdsSelection (de.metas.ui.web.window.datatypes.DocumentIdsSelection)2 BigDecimal (java.math.BigDecimal)2 List (java.util.List)2 AdempiereException (org.adempiere.exceptions.AdempiereException)2 ImmutableList (com.google.common.collect.ImmutableList)1 I_M_Product (de.metas.adempiere.model.I_M_Product)1 IHUContext (de.metas.handlingunits.IHUContext)1 IHandlingUnitsBL (de.metas.handlingunits.IHandlingUnitsBL)1 AllocationUtils (de.metas.handlingunits.allocation.impl.AllocationUtils)1 HUProducerDestination (de.metas.handlingunits.allocation.impl.HUProducerDestination)1 HUTransformService (de.metas.handlingunits.allocation.transfer.HUTransformService)1 HUSplitBuilderCoreEngine (de.metas.handlingunits.allocation.transfer.impl.HUSplitBuilderCoreEngine)1 LUTUProducerDestination (de.metas.handlingunits.allocation.transfer.impl.LUTUProducerDestination)1