Ver código fonte

Frontend : correctif quantité produits

feature/export_comptable
Guillaume 4 anos atrás
pai
commit
adc4c20426
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 1
- 1
ShopBundle/Services/Order/OrderUtilsStockTrait.php Ver arquivo

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

Carregando…
Cancelar
Salvar