chore: выпуск 2026-11-20d — пополнение счёта и чеки НПД

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-20 23:14:14 +10:00
co-authored by Claude Code
parent f5c4da425b
commit 2117ced19b
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -545,7 +545,7 @@ MAX_MESSAGE_LEN = 10_000
# ⚠️ Версия UI — единый источник. БАМПАТЬ ПРИ КАЖДОМ ДЕПЛОЕ (формат: YYYY-MM-DD + буква).
# Фронт берёт её через GET /api/version (chat.html + admin.html, элемент .app-version).
APP_VERSION = "2026-11-20c"
APP_VERSION = "2026-11-20d"
# Audit: path → action name mapping
_AUDIT_MAP = [
+9
View File
@@ -1,4 +1,13 @@
[
{
"version": "2026-11-20d",
"date": "2026-11-20",
"changes": [
"Счёт можно пополнить онлайн: кнопка «Пополнить счёт» в окне остатка и на странице статистики, суммы 500/1 000/3 000/5 000 ₽ или своя",
"Чек НПД формируется автоматически после оплаты и приходит на почту; возврат — в кабинете платёжки и кнопкой «Возврат проведён» в админке"
]
},
{
"version": "2026-11-20c",
"date": "2026-11-20",
+1 -1
View File
@@ -54,7 +54,7 @@ def test_dry_run_does_not_create(tmp_path, monkeypatch):
def test_topups_index_only_if_table_exists(tmp_path, monkeypatch):
db = _db(tmp_path, monkeypatch)
with sqlite3.connect(db) as c:
c.execute("CREATE TABLE topups (status TEXT, ts REAL)")
c.execute("CREATE TABLE IF NOT EXISTS topups (status TEXT, ts REAL)")
r = mig.run(db)
assert r["ok"] is True
assert "idx_topups_status_ts" in _indexes(db)