CCrmProductRow::SaveRows

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmProductRow
  4. SaveRows
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/mysql/crm_product_row.php
  • Класс: \CCrmProductRow
  • Вызов: CCrmProductRow::SaveRows
static function SaveRows($ownerType, $ownerID, $arRows, $accountContext = null, $checkPerms = true, $regEvent = true, $syncOwner = true, $totalInfo = array())
{
	if (!CCrmSaleHelper::isProcessInventoryManagement())
	{
		return parent::SaveRows($ownerType, $ownerID, $arRows, $accountContext, $checkPerms, $regEvent, $syncOwner, $totalInfo);
	}

	self::setPerRowInsert(true);

	$result = parent::SaveRows($ownerType, $ownerID, $arRows, $accountContext, $checkPerms, $regEvent, $syncOwner, $totalInfo);

	if (
		$result
		&& Loader::includeModule('catalog')
		&& AccessController::getCurrent()->check(ActionDictionary::ACTION_DEAL_PRODUCT_RESERVE)
	)
	{
		ProductRowReserves::processRows((string)$ownerType, (int)$ownerID, $arRows);
	}

	return $result;
}

Добавить комментарий