• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/payment.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Payment
  • Вызов: Payment::fetchData
protected function fetchData()
{
	if ($this->data === null)
	{
		$this->data = [];
		$paymentId = (int)$this->source;
		if ($paymentId <= 0)
		{
			return;
		}
		$this->payment = PaymentRepository::getInstance()->getById($paymentId);
		if ($this->payment)
		{
			$this->data = $this->processData($this->payment->getFields()->getValues());
		}
	}
}