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

	$roundConfig = $this->getRoundIndex('BASKET_ROUND');
	if ($roundConfig === null)
		return;
	if ($roundConfig['DISCOUNT_INDEX'] != $index['DISCOUNT_INDEX'])
		return;
	$this->roundApplyBasketPrices();
}