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

	$semanticId =
		$this->itemAfterSave->hasField(Crm\Item::FIELD_NAME_STAGE_SEMANTIC_ID)
			? $this->itemAfterSave->getStageSemanticId()
			: null
	;

	if ($semanticId && Crm\PhaseSemantics::isFinal($semanticId))
	{
		$result = $this->processInternal();
	}

	return $result;
}