feat: add KS-3/payments, tech debt fixes, UI polish, and KS-2 Excel/Word export

Tasks 008-016: KS-6a journal, KS-3 documents, payments with allocations,
tech debt cleanup, financial privacy, document tree, storno mechanism,
row-click UI, BOQ collapse/sticky header, and KS-2 export to Excel/Word
via shared DTO architecture.
This commit is contained in:
Арсентьев Александр
2026-09-27 13:38:45 +03:00
parent 6c608a8779
commit 9cfb341774
57 changed files with 7163 additions and 50 deletions
+42
View File
@@ -0,0 +1,42 @@
# Implementation Report: 010-ks3-count
## Status
DONE
## What was done
Добавлен счётчик КС-3 в кнопку навигации проекта: `КС-3 (N)`.
## Changed files
### app/routers/projects.py
- Импорт `KS3` из `app.models.ks3`
- Добавлен `ks3_count = db.query(KS3).filter(KS3.project_id == project_id).count()`
- Передаётся `ks3_count` в контекст шаблона
### app/templates/projects/detail.html
- Кнопка `КС-3` → `КС-3{% if ks3_count %} ({{ ks3_count }}){% endif %}`
### tests/test_ks3.py
- Добавлен `test_ks3_count_on_project_page` — проверяет:
- без КС-3 — кнопка без счётчика
- 1 КС-3 → `КС-3 (1)`
- 2 КС-3 → `КС-3 (2)`
## Verification results
### python -m pytest tests/test_ks3.py -v
```
14 passed, 1 warning
```
### python -m pytest -q
```
1 failed, 55 passed, 28 warnings
```
Единственный падающий — `test_project_work_journal_crud_and_dashboard_warnings` (pre-existing).
### git diff --check
Ошибок нет.
## Deviations
None.