• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/orderedit.php
  • Класс: BitrixSaleHelpersAdminOrderEdit
  • Вызов: OrderEdit::getOrderedDiscounts
static function getOrderedDiscounts(Order $order, $needRecalculate = true)
{
	$discounts = self::getDiscountsApplyResult($order, $needRecalculate);
	$discounts["ORDER"] = array();

	if(isset($discounts["DISCOUNT_LIST"]) && is_array($discounts["DISCOUNT_LIST"]))
		$discounts["ORDER"]["DISCOUNT_LIST"] = array_keys($discounts["DISCOUNT_LIST"]);

	return $discounts;
}