• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/classes/general/timeman_report_full.php
  • Класс: CUserReportFull
  • Вызов: CUserReportFull::isNeedSkipReport
private function isNeedSkipReport(array $currentReportInfo, $force): bool
{
	if ($currentReportInfo["IS_REPORT_DAY"] == "N")
	{
		return true;
	}
	elseif ($currentReportInfo["IS_REPORT_DAY"] == "Y")
	{
		if ($force === true)
		{
			return false;
		}

		if ($currentReportInfo["IS_DELAY"] == "Y" && $currentReportInfo["DELAY_TIME"] < time())
		{
			$currentReportInfo["IS_DELAY"] = "N";
		}

		if ($currentReportInfo["IS_DELAY"] == "Y" || $currentReportInfo["SHOW_REPORT_FORM"] == "N")
		{
			return true;
		}
	}

	return false;
}