• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tax/vatcalculator.php
  • Класс: BitrixSaleTaxVatCalculator
  • Вызов: VatCalculator::allocate
public function allocate(float $price, bool $withRound = true): float
{
	if ($this->rate === 0.0)
	{
		return $price;
	}

	$rate = $this->rate * 100;
	$vat = $price * $rate / ($rate + 100);
	$priceWithoutVat = $price - $vat;

	return $withRound ? PriceMaths::roundPrecision($priceWithoutVat) : $priceWithoutVat;
}