• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/worktime/violation/fixedscheduleviolationbuilder.php
  • Класс: BitrixTimemanServiceWorktimeViolationFixedScheduleViolationBuilder
  • Вызов: FixedScheduleViolationBuilder::skipViolationsCheck
protected function skipViolationsCheck()
{
	if (parent::skipViolationsCheck() || $this->isRecordStartedOnHoliday())
	{
		return true;
	}
	if (!$this->getShift())
	{
		// assume that shift is empty because user works outside of working days of shift
		return true;
	}
	// if record has shift - check violations only if it is a working day based on shift configuration
	return !Shift::isDateInShiftWorkDays($this->buildRecordStartDateTime(), $this->getShift());
}