1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
price.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sale\Services\Company\Restrictions;
4
5
use Bitrix\Sale\Internals\CollectableEntity;
6
use Bitrix\Sale\Internals\Entity;
7
use Bitrix\Sale\Order;
8
use Bitrix\Sale\Payment;
9
use Bitrix\Sale\Services\PaySystem\Restrictions;
10
use Bitrix\Sale\Shipment;
11
12
class
Price
extends
Restrictions\Price
13
{
19
protected
static
function
extractParams(
Entity
$entity)
20
{
22
$collection =
null
;
23
24
if
($entity instanceof
Payment
)
25
$collection = $entity->getCollection();
26
elseif
($entity instanceof
Shipment
)
27
$collection = $entity->getCollection();
28
elseif
($entity instanceof Order)
29
{
30
return
array
(
'PRICE_PAYMENT'
=> $entity->getPrice());
31
}
32
33
if
($collection)
34
{
36
$order
= $collection->getOrder();
37
38
return
array
(
'PRICE_PAYMENT'
=>
$order
->getPrice());
39
}
40
41
return
array
(
'PRICE_PAYMENT'
=>
null
);
42
}
43
}
Bitrix\Sale\Payment
Определения
payment.php:19
Bitrix\Sale\Shipment
Определения
shipment.php:21
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Catalog\Product\Price
Определения
calculation.php:2
Bitrix\Main\Entity
Определения
ufield.php:9
$order
$order
Определения
payment.php:8
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
sale
lib
services
company
restrictions
price.php
Создано системой
1.14.0