OrderDetailQuantityValidatorService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\OrderDetailQuantityValidator\OrderDetailQuantityValidator, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware\Plugins\ViisonPickwareERP\Components\OrderDetailQuantityCalculator\OrderDetailQuantityCalculator $orderDetailQuantityCalculator) 

Returns whether the provided combinations of $quantity and $shippedQuantity is allowed for the $orderDetail

isQuantityAndShippedQuantityCombinationValid(\Shopware\Models\Order\Detail $orderDetail, integer $quantity, integer $shippedQuantity) : boolean

Parameter $orderDetail does not have a type-hint because the proxy generation is SW 5.2 is broken. It would generate a proxy classes without type-hints what leads to methods being incompatible with their parents. Since we need to hook this method in ShopwarePickwareMobile the type-hint is dropped.

Arguments

$orderDetail

\Shopware\Models\Order\Detail

$quantity

integer

$shippedQuantity

integer

Response

boolean

isQuantityAndShippedQuantityCombinationValidForOrderDetailCreation

isQuantityAndShippedQuantityCombinationValidForOrderDetailCreation(integer $quantity, integer $shippedQuantity) : boolean
inheritdoc

Arguments

$quantity

integer

$shippedQuantity

integer

Response

boolean

validateQuantityAndShippedQuantityCombination

validateQuantityAndShippedQuantityCombination(\Shopware\Models\Order\Detail $orderDetail, integer $quantity, integer $shippedQuantity) 
inheritdoc

Arguments

$orderDetail

\Shopware\Models\Order\Detail

$quantity

integer

$shippedQuantity

integer

validateQuantityAndShippedQuantityCombinationForOrderDetailCreation

validateQuantityAndShippedQuantityCombinationForOrderDetailCreation(integer $quantity, integer $shippedQuantity) 
inheritdoc

Arguments

$quantity

integer

$shippedQuantity

integer