Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
converterdocumentorder.php
1<?php
2
4
5
7{
8 protected function getFieldsInfo()
9 {
11 }
12
13 public function externalizeItems(array $items, array $info)
14 {
15 $result = parent::externalizeItems($items, $info);
16 foreach ($items as $rowId=>$item)
17 {
18 foreach($info['FIELDS'] as $name=>$fieldInfo)
19 {
20 $value='';
21 switch ($name)
22 {
23 case 'BASE_UNIT':
24 $value = self::MEASURE_CODE_DEFAULT;
25 break;
26 }
27
28 if($value<>'')
29 {
30 $this->externalizeField($value, $fieldInfo);
31 $result[$rowId][$name] = $value;
32 }
33 }
34 }
35 return $result;
36 }
37}