Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
converterdocumentshipment.php
1
<?php
2
3
namespace
Bitrix\Sale\Exchange\OneC\SubordinateSale
;
4
5
6
use
Bitrix\Sale\Exchange\ImportBase
;
7
use
Bitrix\Sale\Exchange\ImportOneCBase
;
8
9
class
ConverterDocumentShipment
extends
\Bitrix\Sale\Exchange\OneC\ConverterDocumentShipment
10
{
11
protected
function
getFieldsInfo
()
12
{
13
return
ShipmentDocument::getFieldsInfo
();
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
}
Bitrix\Sale\Exchange\ImportBase
Definition
importbase.php:9
Bitrix\Sale\Exchange\ImportBase\ITEM_SERVICE
const ITEM_SERVICE
Definition
importbase.php:11
Bitrix\Sale\Exchange\ImportOneCBase
Definition
importonecbase.php:20
Bitrix\Sale\Exchange\ImportOneCBase\DELIVERY_SERVICE_XMLID
const DELIVERY_SERVICE_XMLID
Definition
importonecbase.php:25
Bitrix\Sale\Exchange\OneC\ConverterDocumentShipment
Definition
converterdocumentshipment.php:21
Bitrix\Sale\Exchange\OneC\DocumentBase\getFieldsInfo
static getFieldsInfo()
Definition
documentbase.php:786
Bitrix\Sale\Exchange\OneC\SubordinateSale\ConverterDocumentOrder
Definition
converterdocumentorder.php:7
Bitrix\Sale\Exchange\OneC\SubordinateSale\ConverterDocumentShipment
Definition
converterdocumentshipment.php:10
Bitrix\Sale\Exchange\OneC\SubordinateSale\ConverterDocumentShipment\externalizeItems
externalizeItems(array $items, array $info)
Definition
converterdocumentshipment.php:16
Bitrix\Sale\Exchange\OneC\SubordinateSale\ConverterDocumentShipment\getBasePriceDelivery
getBasePriceDelivery($list=[])
Definition
converterdocumentshipment.php:22
Bitrix\Sale\Exchange\OneC\SubordinateSale\ConverterDocumentShipment\getFieldsInfo
getFieldsInfo()
Definition
converterdocumentshipment.php:11
Bitrix\Sale\Exchange\OneC\SubordinateSale
Definition
converterdocumentorder.php:3
modules
sale
lib
exchange
onec
subordinatesale
converterdocumentshipment.php
Создано системой
1.10.0