• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Reservation/Component/InventoryManagement.php
  • Класс: Bitrix\Crm\Reservation\Component\InventoryManagement
  • Вызов: InventoryManagement::process
public function process(): Main\Result
{
	$result = new Main\Result();

	if (!$this->isProcessInventoryManagementAvailable())
	{
		return $result;
	}

	if ($this->itemBeforeSave->isNew())
	{
		$result = $this->processOnAdd();
	}
	else
	{
		$result = $this->processOnUpdate();
	}

	return $result;
}