• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/integrations/report/statistics/treatmentbyhour.php
  • Класс: BitrixImOpenLinesIntegrationsReportStatisticsTreatmentByHour
  • Вызов: TreatmentByHour::updateRecord
public function updateRecord(array $existingRecord)
{
	$primary = array(
		'DATE' => $this->getDate(),
		'OPEN_LINE_ID' => $this->getOpenLineId(),
		'SOURCE_ID' => $this->getSourceId(),
		'OPERATOR_ID' => $this->getOperatorId(),
	);
	TreatmentByHourStatTable::update($primary, array(
		'fields' => array(
			'QTY' => $existingRecord['QTY'] + 1,
		)
	));
}