Browse Source

PriceUtils : correctif getPriceByRefUnitWithTaxAndReduction

develop
Guillaume 3 years ago
parent
commit
061cd00e3e
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      ShopBundle/Services/Price/ProductPriceUtils.php

+ 5
- 3
ShopBundle/Services/Price/ProductPriceUtils.php View File

@@ -67,12 +67,14 @@ class ProductPriceUtils
public function getPriceByRefUnitWithTaxAndReduction(ProductPropertyInterface $product)
{

return $this->applyReductionCatalog(
return ($this->getPriceByRefUnitWithTax($product) * $this->getPriceWithTaxAndReduction($product))
/ $this->getPriceWithTax($product) ;

/*return $this->applyReductionCatalog(
$product,
$this->getPriceByRefUnit($product),
$this->getPriceByRefUnitWithTax($product)
);

);*/
}



Loading…
Cancel
Save