feat(админка): состояния costs, metrics и finance

This commit is contained in:
anor
2026-11-06 20:03:20 +10:00
parent 59c4741d98
commit 9f4af6137b
5 changed files with 70 additions and 15 deletions
+8 -1
View File
@@ -110,7 +110,14 @@ DATA = {
"people": 11},
{"month": "2026-09", "revenue_rub": None, "refunded_rub": None, "payers": 0,
"cost_rub": 402.1, "charged_rub": 482.5, "profit_rub": None, "requests": 232,
"people": 8}], "note": "поступлений пока нет"},
"people": 8}],
"totals": {"revenue_rub": 0.0, "refunded_rub": 0.0, "cost_rub": 1606.6,
"profit_rub": None, "flow_rub": None, "margin_share": None,
"flow_share": None, "accounts_total_rub": 2400.0,
"accounts_count": 1, "topups_included": False, "payers": 0,
"people": 14, "requests": 612, "unpriced": 2,
"revenue_per_payer": None, "cost_per_person": 114.76},
"note": "поступлений пока нет"},
"/api/admin/payments": {"payments": [
{"ts": 1757100000, "username": "zakaz@smetashop.pro", "product": "Месяц",
"amount_rub": 990, "status": "succeeded", "yk_payment_id": "2f1c-9a"}]},