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

public function getPriceByRefUnitWithTaxAndReduction(ProductPropertyInterface $product) public function getPriceByRefUnitWithTaxAndReduction(ProductPropertyInterface $product)
{ {


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

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

);*/
} }





Loading…
Cancel
Save