• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discountbase.php
  • Класс: BitrixSaleDiscountBase
  • Вызов: DiscountBase::saveMixed
protected function saveMixed()
{
	$result = $this->saveApply();

	if ($result->isSuccess())
	{
		$basketCodeList = array_merge(
			$this->getBasketCodes(false),
			$this->getBasketCodes(true)
		);
		$dataResult = $this->saveBasketStoredData($basketCodeList);
		if (!$dataResult->isSuccess())
		{
			$result->addErrors($dataResult->getErrors());
		}
		unset($dataResult, $basketCodeList);
	}

	return $result;
}