• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/worktime/action/shiftwithdate.php
  • Класс: BitrixTimemanServiceWorktimeActionShiftWithDate
  • Вызов: ShiftWithDate::getMaxStartOffset
private function getMaxStartOffset()
{
	if ($this->schedule->isFixed())
	{
		return $this->shift->getDuration() / 2;
	}
	if ($this->schedule->isShifted())
	{
		return $this->schedule->getAllowedMaxShiftStartOffset();
	}
	return 0;
}