• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/worktime/action/shiftsmanager.php
  • Класс: BitrixTimemanServiceWorktimeActionShiftsManager
  • Вызов: ShiftsManager::hasShiftPlan
private function hasShiftPlan(ShiftWithDate $shift)
{
	$shiftStartDate = clone $shift->getDateTimeStart();
	$shiftStartDate->setTimezone(new DateTimeZone('UTC'));
	return (bool)$this->shiftPlanProvider->findActiveByComplexId(
		$shift->getShift()->getId(),
		$this->userId,
		new Date($shiftStartDate->format('Y-m-d'), 'Y-m-d')
	);
}