• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/integrations/report/statistics/mark.php
  • Класс: BitrixImOpenLinesIntegrationsReportStatisticsMark
  • Вызов: Mark::createRecord
public function createRecord()
{
	$fields = array(
		'DATE' => $this->getDate(),
		'OPEN_LINE_ID' => $this->getOpenLineId(),
		'SOURCE_ID' => $this->getSourceId(),
		'OPERATOR_ID' => $this->getOperatorId(),
	);
	switch ($this->getMark())
	{
		case self::WITHOUT_MARK:
			$fields['WITHOUT_MARK_QTY'] = 1;
			break;
		case self::POSITIVE:
			$fields['POSITIVE_QTY'] = 1;
			break;
		case self::NEGATIVE:
			$fields['NEGATIVE_QTY'] = 1;
			break;
	}
	DialogStatTable::add(array(
		'fields' => $fields
	));
}