Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
converterdocumentshipment.php
1<?php
2
4
5
8
10{
11 protected function getFieldsInfo()
12 {
14 }
15
16 public function externalizeItems(array $items, array $info)
17 {
18 $orderDocumentConverter = new ConverterDocumentOrder();
19 return $orderDocumentConverter->externalizeItems($items, $info);
20 }
21
22 protected function getBasePriceDelivery($list = [])
23 {
24 if(is_array($list) && count($list)>0)
25 {
26 foreach($list as $item)
27 {
28 $xmlId = key($item);
29
30 if($xmlId == ImportOneCBase::DELIVERY_SERVICE_XMLID && $item[$xmlId]['TYPE'] == ImportBase::ITEM_SERVICE)
31 {
32 return $item[$xmlId]["PRICE"];
33 }
34 }
35 }
36 return 0;
37 }
38 /*
39 public function externalizeStories(array $stories, array $info)
40 {
41 $orderDocumentConverter = new ConverterDocumentOrder();
42 return $orderDocumentConverter->externalizeStories($stories, $info);
43 }
44
45 public function externalizeTaxes(array $items, array $info)
46 {
47 $orderDocumentConverter = new ConverterDocumentOrder();
48 return $orderDocumentConverter->externalizeTaxes($items, $info);
49 }
50 */
51}