Browse Source

Frontend : correctif quantité produits

feature/export_comptable
Guillaume 4 years ago
parent
commit
adc4c20426
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 1
- 1
ShopBundle/Services/Order/OrderUtilsStockTrait.php View File

@@ -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() ;

Loading…
Cancel
Save