...Человеческий поиск в разработке...
- Модуль: 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(); }