Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
orderinfo.php
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\Admin\Blocks
;
5
6
7
use
Bitrix\Main\Localization\Loc
;
8
use
Bitrix\Sale\Exchange\Integration\EntityType
;
9
use
Bitrix\Sale\Exchange\Integration\Relation\Relation
;
10
use
Bitrix\Sale\Order
;
11
12
Loc::loadMessages
(__FILE__);
13
14
class
OrderInfo
extends
\Bitrix\Sale\Helpers\Admin\Blocks\OrderInfo
15
{
16
protected
static
function
getOrderInfoBlock
(
Order
$order)
17
{
18
$result =
''
;
19
20
$relation =
Relation::getByEntity
(
21
EntityType::ORDER
, $order->getId(),
22
\
Bitrix
\
Sale
\
Exchange
\Integration\CRM\EntityType::DEAL,
''
);
23
24
if
(isset($relation[
'DST_ENTITY_ID'
]) && $relation[
'DST_ENTITY_ID'
]>0)
25
{
26
$result =
'<div class="adm-bus-orderinfoblock-content">
27
<div class="adm-bus-orderinfoblock-content-block-customer">
28
<ul class="adm-bus-orderinfoblock-content-customer-info">
29
<li>
30
<span class="adm-bus-orderinfoblock-content-customer-info-param">'
.Loc::getMessage(
'SALE_ORDER_INFO_LINK'
).
'</span>
31
<span class="adm-bus-orderinfoblock-content-customer-info-separator"></span>
32
<span class="adm-bus-orderinfoblock-content-customer-info-value" id="order_info_buyer_name">'
.$relation[
'DST_ENTITY_ID'
].
'</span>
33
</li>
34
</ul>
35
</div>
36
</div>'
;
37
}
38
39
return
$result;
40
}
41
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Fields\Relations\Relation
Definition
relation.php:26
Bitrix\Sale\Exchange\Integration\Admin\Blocks\OrderInfo
Definition
orderinfo.php:15
Bitrix\Sale\Exchange\Integration\Admin\Blocks\OrderInfo\getOrderInfoBlock
static getOrderInfoBlock(Order $order)
Definition
orderinfo.php:16
Bitrix\Sale\Exchange\Integration\CRM\EntityType
Definition
entitytype.php:5
Bitrix\Sale\Exchange\Integration\EntityType\ORDER
const ORDER
Definition
entitytype.php:12
Bitrix\Sale\Exchange\Integration\Relation\Relation\getByEntity
static getByEntity($sourceEntityTypeId, $sourceEntityId, $destinationEntityTypeId, $destinationEntityId='')
Definition
relation.php:88
Bitrix\Sale\Exchange\Logger\Exchange
Definition
exchange.php:11
Bitrix\Sale\Helpers\Admin\Blocks\OrderInfo
Definition
orderinfo.php:15
Bitrix\Sale\Helpers\Order
Definition
order.php:10
Bitrix\Sale\Order
Definition
order.php:20
Bitrix\Sale\Exchange\Integration\Admin\Blocks
Definition
factory.php:4
Bitrix
Sale
modules
sale
lib
exchange
integration
admin
blocks
orderinfo.php
Создано системой
1.10.0