1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
price.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Services\Company\Restrictions;
4
5use Bitrix\Sale\Internals\CollectableEntity;
6use Bitrix\Sale\Internals\Entity;
7use Bitrix\Sale\Order;
8use Bitrix\Sale\Payment;
9use Bitrix\Sale\Services\PaySystem\Restrictions;
10use Bitrix\Sale\Shipment;
11
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}
Определения payment.php:19
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения ufield.php:9
$order
Определения payment.php:8
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393