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();
|
$position = (int) $taxRule->getTaxRuleCountryPosition();
|
||||||
|
|
||||||
$taxType = $taxRule->getTypeInstance();
|
$taxType = $taxRule->getTypeInstance();
|
||||||
$taxType->loadRequirements( $taxRule->getRequirements() );
|
|
||||||
|
|
||||||
if ($currentPosition !== $position) {
|
if ($currentPosition !== $position) {
|
||||||
$taxedPrice += $currentTax;
|
$taxedPrice += $currentTax;
|
||||||
@@ -209,7 +208,6 @@ class Calculator
|
|||||||
$position = (int) $taxRule->getTaxRuleCountryPosition();
|
$position = (int) $taxRule->getTaxRuleCountryPosition();
|
||||||
|
|
||||||
$taxType = $taxRule->getTypeInstance();
|
$taxType = $taxRule->getTypeInstance();
|
||||||
$taxType->loadRequirements( $taxRule->getRequirements() );
|
|
||||||
|
|
||||||
if ($currentPosition !== $position) {
|
if ($currentPosition !== $position) {
|
||||||
$untaxedPrice -= $currentFixTax;
|
$untaxedPrice -= $currentFixTax;
|
||||||
|
|||||||
Reference in New Issue
Block a user