• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discountbase.php
  • Класс: BitrixSaleDiscountBase
  • Вызов: DiscountBase::setRoundIndex
protected function setRoundIndex($entity, array $index)
{
	if (!$this->isRoundMode(self::ROUND_MODE_SALE_DISCOUNT))
		return;
	if (!isset($index['DISCOUNT_INDEX']) || !isset($index['DISCOUNT_ID']))
		return;
	if (!isset($this->roundApplyConfig[$this->discountResultCounter]))
		$this->roundApplyConfig[$this->discountResultCounter] = array();
	$this->roundApplyConfig[$this->discountResultCounter][$entity] = $index;
}