CurrentUncompleted::applyFilter

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CurrentUncompleted
  4. applyFilter
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/deadlinebased/datefilters/currentuncompleted.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\DeadlineBased\DateFilters\CurrentUncompleted
  • Вызов: CurrentUncompleted::applyFilter
public function applyFilter(ConditionTree $ct, QueryParams $params): void
{
	$interval = 'PT' . DateFilter::LIGHT_TIME_COMPATIBLE_OFFSET_MINUTES .  'M';
	$lightCounterAt = Dates::now($params);
	$lightCounterAt->add($interval);

	$ct->where('ref.MIN_DEADLINE', '<=', $lightCounterAt);

	if ($params->periodFrom() && $params->periodTo())
	{
		$this->deadlineBounds->applyFilerToField('ref.MIN_DEADLINE', $ct, $params);
	}
}

Добавить комментарий