• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discountbase.php
  • Класс: BitrixSaleDiscountBase
  • Вызов: DiscountBase::normalizeNewResultRows
protected function normalizeNewResultRows(array &$rows)
{
	if (empty($rows))
		return;

	foreach (array_keys($rows) as $index)
	{
		$rows[$index]['APPLY_BLOCK_COUNTER'] = $this->discountResultCounter;
		if (isset($rows[$index]['ORDER_DISCOUNT_ID']))
			$rows[$index]['MODULE_ID'] = $this->discountsCache[$rows[$index]['ORDER_DISCOUNT_ID']]['MODULE_ID'];
		if (isset($rows[$index]['COUPON_ID']))
			$rows[$index]['COUPON_ID'] = ($rows[$index]['COUPON_ID'] != '' ? $this->couponsCache[$rows[$index]['COUPON_ID']]['ID'] : 0);
	}
	unset($index);
}