Browse Source

Correctif reductionCatalog

packProduct
Fabien Normand 3 years ago
parent
commit
faba877f24
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Solver/Price/PriceSolverTrait.php

+ 1
- 1
Solver/Price/PriceSolverTrait.php View File

if($entity instanceof ProductFamilyInterface) { if($entity instanceof ProductFamilyInterface) {
$taxRate = $this->productFamilySolver->getTaxRateInherited($entity)->getValue(); $taxRate = $this->productFamilySolver->getTaxRateInherited($entity)->getValue();
}else if ($entity instanceof ProductInterface) { }else if ($entity instanceof ProductInterface) {
$taxRate = $this->productSolver->getTaxRateInherited($entity)->getValue();
$taxRate = $this->productFamilySolver->getTaxRateInherited($entity->getProductFamily())->getValue();
}else{ }else{
$taxRate = $entity->getTaxRate()->getValue(); $taxRate = $entity->getTaxRate()->getValue();
} }

Loading…
Cancel
Save