• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/payment.php
  • Класс: BitrixSalePayment
  • Вызов: Payment::addChangesToHistory
protected function addChangesToHistory($name, $oldValue = null, $value = null)
{
	if ($this->getId() > 0)
	{
		$order = $this->getOrder();

		if ($order && $order->getId() > 0)
		{
			OrderHistory::addField(
				'PAYMENT',
				$order->getId(),
				$name,
				$oldValue,
				$value,
				$this->getId(),
				$this
			);
		}
	}
}