TransportBase::getOrderData

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. TransportBase
  4. getOrderData
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/returncustomer/transportbase.php
  • Класс: Bitrix\Sender\Integration\Crm\ReturnCustomer\TransportBase
  • Вызов: TransportBase::getOrderData
protected function getOrderData($dealId)
{
	$dbRes = \Bitrix\Crm\Order\EntityBinding::getList([
		'select' => ['PAYMENT_ID' => 'ORDER.PAYMENT.ID', 'PAYMENT_ORDER_ID' => 'ORDER.PAYMENT.ORDER_ID'],
		'filter' => [
			'OWNER_ID' => $dealId,
			'OWNER_TYPE_ID' => \CCrmOwnerType::Deal,
			'!ORDER.PAYMENT.PS_RECURRING_TOKEN' => '',
			'=ORDER.PAYMENT.PAID' => 'Y',
		],
		'order' => ['ORDER.PAYMENT.ID' => 'DESC']
	]);

	return $dbRes->fetch();
}

Добавить комментарий