Package org.openwms.wms.receiving.impl
Class QuantityCaptureOnLocationRequestCapturer
java.lang.Object
org.openwms.wms.receiving.impl.AbstractCapturer
org.openwms.wms.receiving.impl.QuantityCaptureOnLocationRequestCapturer
- All Implemented Interfaces:
ReceivingOrderCapturer<QuantityCaptureOnLocationRequestVO>
,org.springframework.plugin.core.Plugin<CaptureRequestVO>
@TxService
class QuantityCaptureOnLocationRequestCapturer
extends AbstractCapturer
implements ReceivingOrderCapturer<QuantityCaptureOnLocationRequestVO>
A QuantityCaptureOnLocationRequestCapturer accepts capturing inbound goods on a Location.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final SyncPackagingUnitApi
private final SyncProductApi
Fields inherited from class org.openwms.wms.receiving.impl.AbstractCapturer
productService, publisher, repository, translator, validator
-
Constructor Summary
ConstructorDescriptionQuantityCaptureOnLocationRequestCapturer
(org.springframework.context.ApplicationEventPublisher publisher, org.ameba.i18n.Translator translator, ReceivingOrderRepository repository, ProductService productService, jakarta.validation.Validator validator, SyncPackagingUnitApi packagingUnitApi, SyncProductApi productApi) -
Method Summary
Modifier and TypeMethodDescriptioncapture
(String pKey, @NotNull QuantityCaptureOnLocationRequestVO request) Capture received goods to a suitableReceivingOrderPosition
.private void
createPackagingUnitsForDemand
(QuantityCaptureOnLocationRequestVO request, Product product) protected Product
private Optional
<ReceivingOrder> handleExpectedReceipt
(String pKey, org.openwms.core.units.api.Measurable quantityReceived, Product existingProduct, Consumer<Void> func) private Supplier
<org.ameba.exception.NotFoundException> 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 -
packagingUnitApi
-
productApi
-
-
Constructor Details
-
QuantityCaptureOnLocationRequestCapturer
QuantityCaptureOnLocationRequestCapturer(org.springframework.context.ApplicationEventPublisher publisher, org.ameba.i18n.Translator translator, ReceivingOrderRepository repository, ProductService productService, jakarta.validation.Validator validator, SyncPackagingUnitApi packagingUnitApi, SyncProductApi productApi)
-
-
Method Details
-
capture
@Measured public Optional<ReceivingOrder> capture(String pKey, @NotNull @NotNull QuantityCaptureOnLocationRequestVO request) Capture received goods to a suitableReceivingOrderPosition
.- Specified by:
capture
in interfaceReceivingOrderCapturer<QuantityCaptureOnLocationRequestVO>
- 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
-
getProduct
-
ifNotFound
private Supplier<org.ameba.exception.NotFoundException> ifNotFound(QuantityCaptureOnLocationRequestVO request) -
createPackagingUnitsForDemand
private void createPackagingUnitsForDemand(QuantityCaptureOnLocationRequestVO request, Product product) -
handleExpectedReceipt
-
supports
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<CaptureRequestVO>
-