OrderDetailQuantityValidator

Extends

package

Default

Methods

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

Arguments

$quantity

integer

$shippedQuantity

integer

Response

boolean

validateQuantityAndShippedQuantityCombination

validateQuantityAndShippedQuantityCombination(\Shopware\Models\Order\Detail $orderDetail, integer $quantity, integer $shippedQuantity) 
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\OrderDetailQuantityValidator\OrderDetailQuantityViolationException

Arguments

$orderDetail

\Shopware\Models\Order\Detail

$quantity

integer

$shippedQuantity

integer

validateQuantityAndShippedQuantityCombinationForOrderDetailCreation

validateQuantityAndShippedQuantityCombinationForOrderDetailCreation(integer $quantity, integer $shippedQuantity) 
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\OrderDetailQuantityValidator\OrderDetailQuantityViolationException

Arguments

$quantity

integer

$shippedQuantity

integer