• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/restrictions/byprice.php
  • Класс: BitrixSaleDeliveryRestrictionsByPrice
  • Вызов: ByPrice::extractParams
static function extractParams(Entity $entity)
{
	if ($entity instanceof Shipment)
	{
		if(!$itemCollection = $entity->getShipmentItemCollection())
			return -1;
	}
	else
	{
		return -1;
	}

	return $itemCollection->getPrice();
}