31 if($this->getFieldValue(
'LID'))
32 $filter[
'=LID'] = $this->getFieldValue(
'LID',
null);
34 if($this->getFieldValue(
'ID'))
35 $filter[
'=ID'] = $this->getFieldValue(
'ID', 0);
37 if($this->getFieldValue(
'USER_ID'))
38 $filter[
'=USER_ID'] = $this->getFieldValue(
'USER_ID', 0);
40 if($this->getFieldValue(
'BASKET_PRODUCT_ID'))
42 $filter[
'=BASKET.PRODUCT_ID'] = $this->getFieldValue(
'BASKET_PRODUCT_ID', 0);
43 $runtime[
'BASKET'] = array(
44 'data_type' =>
'Bitrix\Sale\Internals\Basket',
46 '=this.ID' =>
'ref.ORDER_ID'
51 $resultDb = \Bitrix\Sale\Internals\OrderTable::getList(array(
52 'select' => array(
'USER_ID',
'NAME' =>
'USER.NAME',
'EMAIL' =>
'USER.EMAIL'),
54 'runtime' => $runtime,
55 'group' => array(
'USER_ID',
'NAME',
'EMAIL'),
56 'order' => array(
'USER_ID' =>
'ASC'),
59 return new \CDBResult($resultDb);