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;
}
Aggregations