• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/report/handler/salesdynamics/basegraph.php
  • Класс: Bitrix\Crm\Integration\Report\Handler\SalesDynamics\BaseGraph
  • Вызов: BaseGraph::addTimePeriodToQuery
protected function addTimePeriodToQuery(Query $query, $timePeriodValue)
{
	if (($timePeriodValue['from'] ?? '') !== '' && ($timePeriodValue['to'] ?? '') !== '')
	{
		$toDateValue = new DateTime($timePeriodValue['to']);
		$fromDateValue = new DateTime($timePeriodValue['from']);

		$query->whereBetween("CLOSEDATE", $fromDateValue, $toDateValue);
	}
}