Document/Model/DocumentLine.php
private function ati(float $amount)
    {
        $result = $amount;

        foreach ($this->taxRates as $rate) {
            $result += $amount * $rate / 100;
        }

        return Money::round($result, $this->getDocument()->getCurrency());
    }
private function ati(float $amount)
    {
        $result = $amount;

        foreach ($this->taxRates as $rate) {
            $result += $amount * $rate / 100;
        }

        return Money::round($result, $this->getDocument()->getCurrency());
    }
private function ati ( float $ amount ) { $ result = $ amount ; foreach ( $ this -> taxRates as $ rate ) { $ result += $ amount * $ rate / 100 ; } return Money :: round ( $ result , $ this -> getDocument ( ) -> getCurrency ( ) ) ; }
Adds the taxes to the given amount.

@param float $amount

@return float
Adds the taxes to the given amount .