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