• Модуль: catalogmobile
  • Путь к файлу: ~/bitrix/modules/catalogmobile/lib/InventoryControl/Command/ConductDocumentCommand.php
  • Класс: BitrixCatalogMobileInventoryControlCommandConductDocumentCommand
  • Вызов: ConductDocumentCommand::execute
public function execute(): Result
{
	return $this->transaction(function () {
		$result = new Result();

		if (CCatalogDocs::conductDocument($this->documentId, $this->userId))
		{
			$result = $this->updateCatalogBarcodes();
		}
		else
		{
			$error = $this->getLastApplicationError()
				?: new Error(Loc::getMessage('MOBILE_IC_COMMAND_CONDUCT_DOCUMENT_ERROR'));

			$result->addError($error);
		}

		return $result;
	});
}