Search in sources :

Example 6 with PickingSlotRow

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

the class WEBUI_Picking_M_Picking_Candidate_Unprocess method doIt.

@Override
protected String doIt() {
    final PickingSlotRow rowToProcess = getSingleSelectedRow();
    final int huId = rowToProcess.getHuId();
    pickingCandidateService.unprocessForHUId(huId);
    return MSG_OK;
}
Also used : PickingSlotRow(de.metas.ui.web.picking.pickingslot.PickingSlotRow)

Example 7 with PickingSlotRow

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

the class WEBUI_Picking_PickQtyToExistingHU method doIt.

@Override
protected String doIt() throws Exception {
    final PickingSlotRow pickingSlotRow = getSingleSelectedRow();
    final boolean isAllowOverdelivery = pickingConfigRepo.getPickingConfig().isAllowOverDelivery();
    pickingCandidateService.addQtyToHU().qtyCU(qtyCU).targetHUId(pickingSlotRow.getHuId()).pickingSlotId(pickingSlotRow.getPickingSlotId()).shipmentScheduleId(getView().getCurrentShipmentScheduleId()).isAllowOverdelivery(isAllowOverdelivery).build().performAndGetQtyPicked();
    invalidateView();
    invalidateParentView();
    return MSG_OK;
}
Also used : PickingSlotRow(de.metas.ui.web.picking.pickingslot.PickingSlotRow)

Example 8 with PickingSlotRow

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

the class WEBUI_Picking_RemoveHUFromPickingSlot method doIt.

@Override
protected String doIt() {
    final PickingSlotRow huRow = getSingleSelectedRow();
    pickingCandidateService.removeHUFromPickingSlot(huRow.getHuId());
    return MSG_OK;
}
Also used : PickingSlotRow(de.metas.ui.web.picking.pickingslot.PickingSlotRow)

Example 9 with PickingSlotRow

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

the class WEBUI_Picking_PickQtyToNewHU method doIt.

@Override
protected String doIt() throws Exception {
    final PickingSlotRow pickingSlotRow = getSingleSelectedRow();
    final I_M_HU hu = createAndAddHU(pickingSlotRow);
    addPickedQuantity(hu, pickingSlotRow);
    final HUToReportWrapper huToReport = HUToReportWrapper.of(hu);
    printPickingLabel(huToReport);
    invalidateView();
    invalidateParentView();
    return MSG_OK;
}
Also used : HUToReportWrapper(de.metas.handlingunits.report.HUToReportWrapper) PickingSlotRow(de.metas.ui.web.picking.pickingslot.PickingSlotRow) I_M_HU(de.metas.handlingunits.model.I_M_HU)

Example 10 with PickingSlotRow

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

the class WEBUI_Picking_ReturnQtyToSourceHU method doIt.

@Override
protected String doIt() throws Exception {
    final PickingSlotRow pickingSlotRow = getSingleSelectedRow();
    pickingCandidateService.removeQtyFromHU().qtyCU(qtyCU).huId(pickingSlotRow.getHuId()).productId(pickingSlotRow.getHuProductId()).build().perform();
    invalidateView();
    invalidateParentView();
    return MSG_OK;
}
Also used : PickingSlotRow(de.metas.ui.web.picking.pickingslot.PickingSlotRow)

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