Бюджет сохраняется при смене валютыThe budget survives a currency switch
· Открыть на сайтеOpen on the site
ЦельGoal
Инвестор задал бюджет в одной валюте и переключил показ цен на свою — каталог показывает те же лоты, а граница бюджета пересчитана в новую валюту (сценарий «Бюджет»).An investor set a budget in one currency and switched the price display to their own — the catalogue shows the same lots, and the budget limit is converted to the new currency (the «Budget» scenario).
ЗадачаProblem
Смена валюты молча очищала фильтр цены: «до 150 тыс. $» → рубли — граница исчезала, и каталог снова показывал все 230 юнитов из 230, как будто все помещаются в бюджет.Switching the currency silently cleared the price filter: «up to $150k» → roubles — the limit vanished and the catalogue showed all 230 of 230 units again, as if all of them fitted the budget.
Как решилиHow it was solved
- Границы «от» и «до» пересчитываются по курсу сайта (тот же курс ЦБ Турции, по которому пересчитаны цены): «до 150 тыс. $» → «до 12,2 млн ₽», показаны те же 27 юнитов.The «from» and «to» limits are converted at the site's rate (the same Central Bank of Turkey rate the prices use): «up to $150k» → «up to ₽12.2m», the same 27 units shown.
- Пересчитанная граница округляется до трёх значащих цифр в сторону бюджета («до» — вверх, «от» — вниз), чтобы не отрезать лоты на границе.The converted limit is rounded to three significant digits towards the budget («to» up, «from» down) so that lots on the edge are not cut off.
До и послеBefore and after


