|
|
@@ -134,7 +134,7 @@ trait OrderUtilsStockTrait |
|
|
|
&& $orderProduct->getProduct()->getProductFamily()->getId() == $productFamily->getId())) { |
|
|
|
|
|
|
|
if($byWeight) { |
|
|
|
$quantity += $orderProduct->getQuantityOrder() * ($orderProduct->getQuantityProduct() / $product->getUnitInherited()->getCoefficient()) ; |
|
|
|
$quantity += $orderProduct->getQuantityOrder() * ($orderProduct->getQuantityProduct() / $orderProduct->getProduct()->getUnitInherited()->getCoefficient()) ; |
|
|
|
} |
|
|
|
else { |
|
|
|
$quantity += $orderProduct->getQuantityOrder() ; |