fix taxengine tests
This commit is contained in:
@@ -74,6 +74,11 @@ class Calculator
|
||||
}
|
||||
|
||||
public function getTaxAmount($untaxedPrice)
|
||||
{
|
||||
return $this->getTaxedPrice($untaxedPrice) - $untaxedPrice;
|
||||
}
|
||||
|
||||
public function getTaxedPrice($untaxedPrice)
|
||||
{
|
||||
if(null === $this->taxRulesCollection) {
|
||||
throw new TaxEngineException('Tax rules collection is empty in Calculator::getTaxAmount', TaxEngineException::UNDEFINED_TAX_RULES_COLLECTION);
|
||||
@@ -106,9 +111,4 @@ class Calculator
|
||||
|
||||
return $taxedPrice;
|
||||
}
|
||||
|
||||
public function getTaxedPrice($untaxedPrice)
|
||||
{
|
||||
return $untaxedPrice + $this->getTaxAmount($untaxedPrice);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user