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

&& $orderProduct->getProduct()->getProductFamily()->getId() == $productFamily->getId())) { && $orderProduct->getProduct()->getProductFamily()->getId() == $productFamily->getId())) {


if($byWeight) { if($byWeight) {
$quantity += $orderProduct->getQuantityOrder() * ($orderProduct->getQuantityProduct() / $product->getUnitInherited()->getCoefficient()) ;
$quantity += $orderProduct->getQuantityOrder() * ($orderProduct->getQuantityProduct() / $orderProduct->getProduct()->getUnitInherited()->getCoefficient()) ;
} }
else { else {
$quantity += $orderProduct->getQuantityOrder() ; $quantity += $orderProduct->getQuantityOrder() ;

Loading…
Cancel
Save