Package org.openwms.wms.receiving.impl
Class QuantityCaptureRequestCapturer
java.lang.Object
org.openwms.wms.receiving.impl.AbstractCapturer<QuantityCaptureRequestVO>
org.openwms.wms.receiving.impl.QuantityCaptureRequestCapturer
- All Implemented Interfaces:
ReceivingOrderCapturer<QuantityCaptureRequestVO>
,org.springframework.plugin.core.Plugin<CaptureRequestVO>
@TxService
class QuantityCaptureRequestCapturer
extends AbstractCapturer<QuantityCaptureRequestVO>
implements ReceivingOrderCapturer<QuantityCaptureRequestVO>
A QuantityCaptureRequestCapturer accepts capturing inbound goods on a TransportUnit only.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AsyncPackagingUnitApi
private static final org.slf4j.Logger
Fields inherited from class org.openwms.wms.receiving.impl.AbstractCapturer
capturingApprovals, productService, publisher, repository, translator, validator
-
Constructor Summary
ConstructorDescriptionQuantityCaptureRequestCapturer
(org.springframework.context.ApplicationEventPublisher publisher, org.ameba.i18n.Translator translator, jakarta.validation.Validator validator, ReceivingOrderRepository repository, List<CapturingApproval<QuantityCaptureRequestVO>> capturingApprovals, ProductService productService, AsyncPackagingUnitApi asyncPackagingUnitApi) -
Method Summary
Modifier and TypeMethodDescriptioncapture
(String pKey, @NotNull QuantityCaptureRequestVO request) Capture received goods to a suitableReceivingOrderPosition
.private void
private Optional
<ReceivingOrder> handleExpectedReceipt
(String pKey, QuantityCaptureRequestVO request, Consumer<Void> func) boolean
supports
(CaptureRequestVO request) Methods inherited from class org.openwms.wms.receiving.impl.AbstractCapturer
getOrder, getProduct
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
asyncPackagingUnitApi
-
-
Constructor Details
-
QuantityCaptureRequestCapturer
QuantityCaptureRequestCapturer(org.springframework.context.ApplicationEventPublisher publisher, org.ameba.i18n.Translator translator, jakarta.validation.Validator validator, ReceivingOrderRepository repository, @Autowired(required=false) List<CapturingApproval<QuantityCaptureRequestVO>> capturingApprovals, ProductService productService, AsyncPackagingUnitApi asyncPackagingUnitApi)
-
-
Method Details
-
capture
@Measured public Optional<ReceivingOrder> capture(String pKey, @NotNull @NotNull QuantityCaptureRequestVO request) Capture received goods to a suitableReceivingOrderPosition
.- Specified by:
capture
in interfaceReceivingOrderCapturer<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, QuantityCaptureRequestVO request, Consumer<Void> func) -
createPackagingUnitsForDemand
-
supports
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<CaptureRequestVO>
-