10 return $this->fields->get(
'NAME');
15 $this->fields->set(
'NAME', $value);
21 return $this->fields->get(
'LAST_NAME');
26 $this->fields->set(
'LAST_NAME', $value);
32 return $this->fields->get(
'EMAIL');
37 $this->fields->set(
'EMAIL', $value);
43 return $this->fields->get(
'PHONE');
48 $this->fields->set(
'PHONE', $value);
54 return $this->fields->get(
'ZIP');
59 $this->fields->set(
'ZIP', $value);
65 return $this->fields->get(
'LOCATION');
70 $this->fields->set(
'LOCATION', $value);
76 return $this->fields->get(
'CITY');
81 $this->fields->set(
'CITY', $value);
87 return $this->fields->get(
'ADDRESS');
92 $this->fields->set(
'ADDRESS', $value);
99 foreach($list as $item)
101 $result[
'ID'] = $item[
'SALE_INTERNALS_ORDER_USER_ID'];
103 if($item[
'SALE_INTERNALS_ORDER_PROPERTY_CODE'] ==
'FIO')
105 $name = explode(
' ', $item[
'SALE_INTERNALS_ORDER_PROPERTY_VALUE'])[0];
106 $last = explode(
' ', $item[
'SALE_INTERNALS_ORDER_PROPERTY_VALUE'])[1];
108 $name = $name<>
'' ? $name:$item[
'SALE_INTERNALS_ORDER_USER_NAME'];
109 $last = $last<>
'' ? $last:$item[
'SALE_INTERNALS_ORDER_USER_LAST_NAME'];
111 $name = $name<>
'' ? $name:
'User №'.$item[
'SALE_INTERNALS_ORDER_USER_ID'];
112 $last = $last<>
'' ? $last:
'User №'.$item[
'SALE_INTERNALS_ORDER_USER_ID'];
114 $result[
'NAME'] = $name;
115 $result[
'LAST_NAME'] = $last;
119 $result[$item[
'SALE_INTERNALS_ORDER_PROPERTY_CODE']] = $item[
'SALE_INTERNALS_ORDER_PROPERTY_VALUE'];
135 'LAST_NAME' =>
$fields[
'LAST_NAME'],
139 'ADDRESS' =>
$fields[
'ADDRESS'],