feat(админка): копейки и money API

This commit is contained in:
anor
2026-11-06 22:29:09 +10:00
parent 99b62fb5fb
commit 7ad2368719
6 changed files with 151 additions and 17 deletions
+7
View File
@@ -243,6 +243,13 @@
- UI: «Внести» в карточке с prompt; тост.
- Тесты: `tests/test_topup_v2_api.py` — 4; UI — 9.
## 4.29. P3.1a/b — копейки
- `balance.compose`: Decimal, `ROUND_HALF_UP`, `balance_kop`; 1,00−0,71=29; 1,00−0,375=63; dust-списание не создаёт счёт; `low` на целых.
- `money.summary` + `/api/admin/v2/money`: `*_kop`, `flow_kop=revenue_kop−cost_kop`; период 1..366.
- Тесты: golden 4 + money 2; account_balance 54.
- P2: finance_by_month округляет месяц до копейки до сводки — двойное округление; исправить в P3.1b.
## 5. Следующий шаг
P0.0 design-gate → P0.1 backup/restore → P0.2 (release `feat/topup` отдельно, не в рамках выравнивания).