Remove useless usage of loadRequirements
modifié: core/lib/Thelia/TaxEngine/Calculator.php
This commit is contained in:
@@ -154,7 +154,6 @@ class Calculator
|
||||
$position = (int) $taxRule->getTaxRuleCountryPosition();
|
||||
|
||||
$taxType = $taxRule->getTypeInstance();
|
||||
$taxType->loadRequirements( $taxRule->getRequirements() );
|
||||
|
||||
if ($currentPosition !== $position) {
|
||||
$taxedPrice += $currentTax;
|
||||
@@ -209,7 +208,6 @@ class Calculator
|
||||
$position = (int) $taxRule->getTaxRuleCountryPosition();
|
||||
|
||||
$taxType = $taxRule->getTypeInstance();
|
||||
$taxType->loadRequirements( $taxRule->getRequirements() );
|
||||
|
||||
if ($currentPosition !== $position) {
|
||||
$untaxedPrice -= $currentFixTax;
|
||||
|
||||
Reference in New Issue
Block a user