1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
byusergroup.php
См. документацию.
1<?php
2namespace Bitrix\Sale\Delivery\Restrictions;
3
4use Bitrix\Sale;
5
11{
12 protected static function getEntityTypeId()
13 {
14 return \Bitrix\Sale\Internals\UserGroupRestrictionTable::ENTITY_TYPE_SHIPMENT;
15 }
16
21 protected static function getOrder(Sale\Internals\Entity $entity)
22 {
23 if ($entity instanceof Sale\Shipment)
24 {
26 $collection = $entity->getCollection();
27
29 return $collection->getOrder();
30 }
31 elseif ($entity instanceof Sale\Order)
32 {
34 return $entity;
35 }
36
37 return null;
38 }
39}
$entity
Определения ufield.php:9
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393