feat(деньги): валовая прибыль начислено минус себестоимость

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-10 01:43:14 +10:00
co-authored by Claude Code
parent 33c289845d
commit c4f53def0e
8 changed files with 27 additions and 11 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ DASH = {"user": "boss@x", "generated_at": 1794000000, "last_visit": None,
"attention": {"failures": 0, "limit_hits": 0, "unpriced": 0}}
MONEY = {"period_days": 30, "revenue_rub": 100, "refunded_rub": 0, "cost_rub": 50,
"flow_rub": 50, "charged_rub": 80, "accounts_total_rub": 200,
"accounts_count": 1, "unpriced": 0, "topups_rub": 0}
"accounts_count": 1, "unpriced": 0, "topups_rub": 0, "profit_rub": 40}
# Один закрытый месяц — тот случай, на котором графики разъезжались: ширина viewBox
# зависела от числа точек, и при одной точке SVG растягивался в многоэкранную полосу.
FIN = {"months": [{"month": "2026-11", "revenue_rub": 0, "cost_rub": 714.31}], "days": 30}