}
 // Product custom "types of prices" filter
 $arSelectedPriceTypes = array();
 if (isset($_REQUEST['F_SALE_UCSPT']) && is_array($_REQUEST['F_SALE_UCSPT'])) {
     $i = 0;
     foreach ($_REQUEST['F_SALE_UCSPT'] as $k => $v) {
         if ($i++ === $k && is_numeric($v)) {
             $arSelectedPriceTypes[] = intval($v);
         }
     }
 }
 CBaseSaleReportHelper::setSelectedPriceTypes($arSelectedPriceTypes);
 if ($_REQUEST['REPORT_AJAX'] === 'Y') {
     $arResponse = array();
     if (is_array($_REQUEST['filterTypes'])) {
         $result = CBaseSaleReportHelper::getAjaxResponse($_REQUEST['filterTypes']);
         if (is_array($result)) {
             $arResponse = $result;
         }
     }
     header("Content-Type: application/x-javascript; charset=" . LANG_CHARSET);
     echo CUtil::PhpToJSObject($arResponse);
     exit;
 }
 // </editor-fold>
 if (!isset($arParams['F_SALE_SITE'])) {
     $arParams['F_SALE_SITE'] = CBaseSaleReportHelper::getDefaultSiteId();
 }
 // Select report currency
 $siteId = CBaseSaleReportHelper::getDefaultSiteId();
 $siteCurrencyId = '';