{{-- Task #33876 — LTV (SCR-01) — read-only analytics, System Admin / 売上データ. EP-01: GET /admin/revenue/ltv/data (overall | by_channel). RESOLVED: LTV = ARPU × 継続月数 (BR-01); 金額 円 + phân cách nghìn, âm → − (BR-G6); 継続月数 1 chữ số thập phân, 解約率=0 → "0.0"; no-data →「-」 (BR-G4). by_channel REDESIGN QD-09b (TD v2, kế thừa #33882): cột kênh ĐỘNG theo path intro (path_intro_name). ⏳ Pending (KHÔNG codify — L4): 前月比 format (QA-spec-006) → null →「-」; nguồn path intro (QD-07b) → channels rỗng (empty-state ⏳ P-4); ARPU thành phần 売上合計 (QA-spec-021, job TA-default). UI compose lme-ui (date-picker/button/icon). Bảng analytics grouped-header tự dựng
| 月 |
LTV
|
ARPU
|
継続月数
|
||||||
|---|---|---|---|---|---|---|---|---|---|
| 金額 | 前月比 | 金額 | 前月比 | 月数 | 前月比 | ||||
| @{{ row.month }} | @{{ formatCurrency(row.ltv) }} | {{-- 前月比 LTV (RESOLVED QA-spec-006/BR-05, TD v4): diff (금액) | ratio (%), 2 cột --}}@{{ formatSignedAmount(row.ltv_diff) }} | @{{ formatPercent(row.ltv_ratio) }} | @{{ formatCurrency(row.arpu) }} | @{{ formatSignedAmount(row.arpu_diff) }} | @{{ formatPercent(row.arpu_ratio) }} | @{{ formatMonths(row.continuation_months) }} | {{-- 継続月数 前月比: diff format theo tháng (1 thập phân) --}}@{{ formatSignedMonths(row.continuation_diff) }} | @{{ formatPercent(row.continuation_ratio) }} |
| 月 | {{-- Cột 全体LTV cố định đứng đầu (BR-08 — reuse LTV view 全体数値) --}}全体LTV | {{-- Cột kênh động (登録経路) — tên dài cắt「…」, hover xem đầy đủ qua tooltip --}}
|
||||
|---|---|---|---|---|---|---|
| 金額 | 前月比 | 金額 | 前月比 | |||
| @{{ row.month }} | {{-- 全体LTV (BR-08): 金額 = LTV view 全体数値 cùng tháng + 前月比 (dữ liệu thật) --}}@{{ formatCurrency(overallLtv(row, 'amount')) }} | @{{ formatSignedAmount(overallLtv(row, 'prev_month_diff')) }} | @{{ formatPercent(overallLtv(row, 'prev_month_ratio')) }} | {{-- Kênh động (BR-07 — 金額 per-path): amount + 前月比 ⏳ QD-07b → 「-」 --}}@{{ formatCurrency(getChannelValue(row, col.path_intro_id, 'amount')) }} | @{{ formatSignedAmount(getChannelValue(row, col.path_intro_id, 'prev_month_diff')) }} | @{{ formatPercent(getChannelValue(row, col.path_intro_id, 'prev_month_ratio')) }} |
登録経路がありません(全体LTVのみ表示)。