diff --git a/api/index.php b/api/index.php index aabd8da..b858ee1 100644 --- a/api/index.php +++ b/api/index.php @@ -1602,7 +1602,10 @@ switch($PARAM_1) $restrictions_values = array_unique($restrictions_values); foreach($restrictions_values AS $rv) { - array_push($restrictions, $flags['RESTRICTIONS'][ $rv ]); + if($flags['RESTRICTIONS'][ $rv ] !== null && $flags['RESTRICTIONS'][ $rv ] !== "") + { + array_push($restrictions, $flags['RESTRICTIONS'][ $rv ]); + } } //filter for pts @@ -1618,7 +1621,10 @@ switch($PARAM_1) $pts_values = array_unique($pts_values); foreach($pts_values AS $rp) { - array_push($pts, $flags['PTS'][ $rp ]); + if($flags['PTS'][ $rp ] !== null && $flags['PTS'][ $rp ] !== "") + { + array_push($pts, $flags['PTS'][ $rp ]); + } } //filter for reserved diff --git a/local/components/evolution/catalog.list.item/templates/.default/template.php b/local/components/evolution/catalog.list.item/templates/.default/template.php index 43541f6..1dd7709 100644 --- a/local/components/evolution/catalog.list.item/templates/.default/template.php +++ b/local/components/evolution/catalog.list.item/templates/.default/template.php @@ -24,19 +24,19 @@ $this->setFrameMode(true);
Ежемесячный платёж (от)
-= $arParams['CALCULATION']['MONTHLY']; ?> р.
+= $arParams['CALCULATION']['MONTHLY']; ?> ₽
Стоимость автомобиля (от)
-= number_format($arParams['PROPERTIES']['PRICE']['VALUE'], 0, ".", " "); ?> р.
+= number_format($arParams['PROPERTIES']['PRICE']['VALUE'], 0, ".", " "); ?> ₽
Экономия по налогу на прибыль (до)
-= $arParams['CALCULATION']['SAVINGS_TAX']; ?> р.
+= $arParams['CALCULATION']['SAVINGS_TAX']; ?> ₽
НДС к возмещению из бюджета (до)
-= $arParams['CALCULATION']['SAVINGS_VAT']; ?> р.
+= $arParams['CALCULATION']['SAVINGS_VAT']; ?> ₽