Class QuantityCaptureRequestCapturer

java.lang.Object
org.openwms.wms.receiving.impl.AbstractCapturer
org.openwms.wms.receiving.impl.QuantityCaptureRequestCapturer
All Implemented Interfaces:
ReceivingOrderCapturer<QuantityCaptureRequestVO>, org.springframework.plugin.core.Plugin<CaptureRequestVO>

@TxService class QuantityCaptureRequestCapturer extends AbstractCapturer implements ReceivingOrderCapturer<QuantityCaptureRequestVO>
A QuantityCaptureRequestCapturer accepts capturing inbound goods on a TransportUnit only.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • asyncPackagingUnitApi

      private final AsyncPackagingUnitApi asyncPackagingUnitApi
  • Constructor Details

    • QuantityCaptureRequestCapturer

      QuantityCaptureRequestCapturer(org.ameba.i18n.Translator translator, ReceivingOrderRepository repository, ProductService productService, org.springframework.context.ApplicationEventPublisher publisher, jakarta.validation.Validator validator, AsyncPackagingUnitApi asyncPackagingUnitApi)
  • Method Details

    • capture

      @Measured public Optional<ReceivingOrder> capture(String pKey, @NotNull @NotNull QuantityCaptureRequestVO request)
      Capture received goods to a suitable ReceivingOrderPosition.
      Specified by:
      capture in interface ReceivingOrderCapturer<QuantityCaptureRequestVO>
      Parameters:
      pKey - The persistent identifier of the ReceivingOrder if present it is a capturing of an Expected Receipt otherwise it is a Blind Receipt.
      request - Particular capturing detail information used to perform the capturing process
      Returns:
      The identified and updated ReceivingOrder instance, in case of Expected Receipts
    • handleExpectedReceipt

      private Optional<ReceivingOrder> handleExpectedReceipt(String pKey, org.openwms.core.units.api.Measurable quantityReceived, Product existingProduct, Consumer<Void> func)
    • createPackagingUnitsForDemand

      private void createPackagingUnitsForDemand(QuantityCaptureRequestVO request)
    • supports

      public boolean supports(CaptureRequestVO request)
      Specified by:
      supports in interface org.springframework.plugin.core.Plugin<CaptureRequestVO>