Package org.openwms.wms.receiving.impl
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.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AsyncPackagingUnitApi
private static final org.slf4j.Logger
private final boolean
Fields inherited from class org.openwms.wms.receiving.impl.AbstractCapturer
productService, repository, translator
-
Constructor Summary
ConstructorsConstructorDescriptionQuantityCaptureRequestCapturer
(boolean overbookingAllowed, org.ameba.i18n.Translator translator, ReceivingOrderRepository repository, ProductService productService, AsyncPackagingUnitApi asyncPackagingUnitApi) -
Method Summary
Modifier and TypeMethodDescription@NotNull ReceivingOrder
capture
(@NotBlank String pKey, @Valid @NotNull QuantityCaptureRequestVO request) Capture received goods to a suitableReceivingOrderPosition
.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 -
overbookingAllowed
private final boolean overbookingAllowed -
asyncPackagingUnitApi
-
-
Constructor Details
-
QuantityCaptureRequestCapturer
QuantityCaptureRequestCapturer(@Value("${owms.receiving.unexpected-receipts-allowed:true}") boolean overbookingAllowed, org.ameba.i18n.Translator translator, ReceivingOrderRepository repository, ProductService productService, AsyncPackagingUnitApi asyncPackagingUnitApi)
-
-
Method Details
-
capture
@Measured @NotNull public @NotNull ReceivingOrder capture(@NotBlank @NotBlank String pKey, @Valid @NotNull @Valid @NotNull QuantityCaptureRequestVO request) Capture received goods to a suitableReceivingOrderPosition
.- Specified by:
capture
in interfaceReceivingOrderCapturer<QuantityCaptureRequestVO>
- Parameters:
pKey
- The persistent identifier of the ReceivingOrderrequest
- Particular capturing detail information used to perform the capturing process- Returns:
- The identified and updated ReceivingOrder instance
-
supports
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<CaptureRequestVO>
-