• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/product.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Product
  • Вызов: Product::getTaxValueSum
public function getTaxValueSum()
{
	$value = 0;

	if($this->data['TAX_RATE'] > 0)
	{
		if($this->data['TAX_INCLUDED'] === 'Y')
		{
			$value = $this->round($this->getRawValue('PRICE_RAW_SUM') - $this->getRawValue('PRICE_RAW_SUM') / (1 + $this->data['TAX_RATE']/100));
		}
		else
		{
			$value = $this->round($this->getRawValue('PRICE_SUM') - $this->getRawValue('PRICE_EXCLUSIVE_SUM'));
		}
	}

	return $value;
}