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