feat: official KS-2 Excel/Word forms with template markers and single-table flow

Replace the simplified KS-2 exports with the official unified form:

- Excel: official blank as working template, merge-safe row insertion,
  compact layout, header/signer polish, 0.00 money format
- Word: official blank via named template markers (DOC-C4), one dynamic
  works table with repeating header rows, separate closing totals block
  (Итого / Всего по акту), system group rows merged across 8 columns
- Word money formatter (space thousands, comma decimals) and split
  contract date day/month/year boxes
- Issue persists both xlsx and docx artifacts; UI keeps Excel and adds
  Word download
- Daily reports: multi-system item selection in the form

Regression tests for renderers, artifacts and layout; docs/tasks +
docs/implementation for the DOC-C* series.
This commit is contained in:
Арсентьев Александр
2026-10-03 19:48:29 +03:00
parent 79c7d4f335
commit bd64bb6307
49 changed files with 6917 additions and 353 deletions
+2 -2
View File
@@ -216,8 +216,8 @@ def test_excel_total_matches(tmp_path):
total_found = False
for row in ws.iter_rows():
for cell in row:
if cell.value == "Итого:":
total_cell = ws.cell(row=cell.row, column=7)
if cell.value and "ВСЕГО" in str(cell.value):
total_cell = ws.cell(row=cell.row, column=11)
assert abs(float(total_cell.value) - 1500.0) < 0.01
total_found = True
assert total_found