1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
tradebinding.php
См. документацию.
1
<?php
2
namespace
Bitrix\Sale\Cashbox\Restrictions;
3
4
use Bitrix\Main\Localization\Loc;
5
use Bitrix\Sale;
6
use Bitrix\Sale\Services\Base;
7
8
Loc::loadMessages(__FILE__);
9
14
class
TradeBinding
extends
Base\TradeBindingRestriction
15
{
20
protected
static
function
getOrder
(
Sale
\
Internals
\
Entity
$entity
)
21
{
22
if
(
$entity
instanceof
Sale
\
Payment
)
23
{
25
$collection =
$entity
->getCollection();
26
28
return
$collection->getOrder();
29
}
30
elseif
(
$entity
instanceof
Sale
\
Shipment
)
31
{
33
$collection =
$entity
->getCollection();
34
36
return
$collection->getOrder();
37
}
38
elseif
(
$entity
instanceof
Sale
\Order)
39
{
41
return
$entity
;
42
}
43
44
return
null
;
45
}
46
}
Bitrix\Sale\Cashbox\Restrictions\TradeBinding
Определения
tradebinding.php:15
Bitrix\Sale\Payment
Определения
payment.php:19
Bitrix\Sale\Services\Base\TradeBindingRestriction\getOrder
static getOrder(Sale\Internals\Entity $entity)
Определения
tradebindingrestriction.php:141
Bitrix\Sale\Shipment
Определения
shipment.php:21
$entity
$entity
Определения
group_bizproc_workflow_delete.php:17
Bitrix\Main\Entity
Определения
ufield.php:9
Bitrix\Sale\Cashbox\Internals
Bitrix\Sale
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
sale
lib
cashbox
restrictions
tradebinding.php
Создано системой
1.14.0