Sfoglia il codice sorgente

Frontend : correctif quantité produits

feature/export_comptable
Guillaume 4 anni fa
parent
commit
adc4c20426
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      ShopBundle/Services/Order/OrderUtilsStockTrait.php

+ 1
- 1
ShopBundle/Services/Order/OrderUtilsStockTrait.php Vedi 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…
Annulla
Salva