- ExcelRepository: canonical columns with ru/en aliases, date/number normalization (Excel dates, DD.MM.YYYY, '1 234,56', currency symbols, parentheses), account name->UUID resolution, per-row errors with sheet!row, warnings for formulas without cached values, duplicate names and default exchange rates - ExcelTemplate: skeleton generator (number/date formats, dropdowns for currency, frequency en/ru and account, 'Инструкция' sheet); ship data/model_template.xlsx - CLI: cf template-xlsx [--force]; cf import-xlsx --dry-run with rich error table, import writes nothing when the file has errors - RecurringCashflow.account (empty = all accounts) + name/UUID matching in forecast; cf config recurring-add --account, account column in info/recurring-list - Forecast: runs are idempotent, 'Итог: Баланс' sums all accounts of the last month - README: 'Сборка модели в Excel' section - ruff check . clean (9 pre-existing import/line-length findings fixed) - MetaAgent: T9 archived, req-T9 approved, manifest/checkpoints/state synced 118 tests pass
23 lines
1.9 KiB
JSON
23 lines
1.9 KiB
JSON
{
|
|
"id": "T8",
|
|
"title": "ISO 4217-aware форматирование денег (per-currency decimals)",
|
|
"status": "archived",
|
|
"origin": "user:direct",
|
|
"request": "req-T8",
|
|
"commit": "d58547e",
|
|
"summary": "CURRENCY_DECIMALS (JPY=0, BHD/KWD/OMR=3, default=2) + CurrencyConverter.format_money() (ROUND_HALF_UP, символ-префикс для известных валют, код-префикс для неизвестных). 14 литералов :,.2f в infrastructure/cli/ заменены на format_money(); i18n-шаблоны transaction_add.ok и recurring_add.ok переведены на {amount_str}. +8 тестов в tests/test_currency.py, всего 75 тестов (по данным коммита — 75/75).",
|
|
"verification": {
|
|
"tests": "75 тестовых функций в tests/ (заявлено 75/75 в коммите d58547e); на машине закрытия динамический прогон недоступен — нет окружения/сети",
|
|
"static": [
|
|
"grep ':,.2f' / ':.2f' в infrastructure/cli/ — 0 совпадений",
|
|
"format_money() вызывается из services.py, info.py, config_cmd.py (16 вызовов)",
|
|
"i18n: {amount_str} в cmd.config.transaction_add.ok и cmd.config.recurring_add.ok"
|
|
]
|
|
},
|
|
"review_notes": [
|
|
"Противоречие в req-T8: decision 'unknown_currency_layout' был записан как suffix ('1,234.56 CHF'), но acceptance criteria и реализация — prefix ('BHD 1.234'). Решение зафиксировано как prefix (см. req-T8, decision исправлен 2026-11-11).",
|
|
"convert() по-прежнему квантует до 0.01, поэтому 0.1 USD → JPY даёт ≈8.07. Это осознанно out_of_scope задачи T8; заведено как кандидат T10."
|
|
],
|
|
"archived_at": "2026-11-11T11:50:09Z"
|
|
}
|