• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/orderdiscountbase.php
  • Класс: BitrixSaleOrderDiscountBase
  • Вызов: OrderDiscountBase::roundPrice
static function roundPrice(array $basketItem, array $roundData = array())
{
	static::init();

	if (empty($basketItem))
		return array();

	$result = static::executeDiscountProvider(
		array('MODULE_ID' => $basketItem['MODULE'], 'METHOD' => self::PROVIDER_ACTION_ROUND_ITEM_PRICE),
		array($basketItem, $roundData)
	);
	if (empty($result))
		return array();

	if (!isset($result['PRICE']) || !isset($result['DISCOUNT_PRICE']))
		return array();

	if (!isset($result['ROUND_RULE']))
		return array();

	return $result;
}