Przeglądaj źródła

Merge branch 'develop'

master
Guillaume 4 lat temu
rodzic
commit
882cf306df
1 zmienionych plików z 4 dodań i 4 usunięć
  1. +4
    -4
      ShopBundle/Services/PriceUtils.php

+ 4
- 4
ShopBundle/Services/PriceUtils.php Wyświetl plik

@@ -217,14 +217,14 @@ class PriceUtils

if(isset($reductionCatalogValue) && isset($reductionCatalogUnit) && isset($reductionCatalogBehaviorTaxRate)) {
if ($reductionCatalogUnit == 'percent') {
return $this->applyReductionPercent(
$priceWithTax = $this->applyReductionPercent(
$priceWithTax,
$reductionCatalogValue
);
}
elseif ($reductionCatalogUnit == 'amount') {
if($reductionCatalogBehaviorTaxRate == 'tax-excluded') {
return $this->applyTax(
$priceWithTax = $this->applyTax(
$this->applyReductionAmount(
$price,
$reductionCatalogValue
@@ -233,7 +233,7 @@ class PriceUtils
);
}
elseif($reductionCatalogBehaviorTaxRate == 'tax-included') {
return $this->applyReductionAmount(
$priceWithTax = $this->applyReductionAmount(
$priceWithTax,
$reductionCatalogValue
);
@@ -241,7 +241,7 @@ class PriceUtils
}
}

return $priceWithTax ;
return $this->round($priceWithTax) ;
}

public function applyTax($price, $taxRateValue)

Ładowanie…
Anuluj
Zapisz