fix(sf-07): median_12m alias + UI 12mo hint #280

Merged
lekss361 merged 1 commit from fix/sf-07-median-12m-alias into main 2026-05-17 11:31:19 +00:00

1 commit

Author SHA1 Message Date
lekss361
4d39ae5b5d fix(sf-07): use median_12m from mv_quarter_price_per_m2 for district price
ekb_districts.median_price_per_m2 was populated from a 24-month window.
LEFT JOIN mv_quarter_price_per_m2 on the cad quarter and COALESCE(median_12m,
fallback) so the API returns the 12-month median where available.
Frontend OverviewTab adds a "(12 мес)" hint next to the value.

Closes #271 item 7
2026-05-17 14:28:32 +03:00