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
Binary file not shown.
Binary file not shown.
Binary file not shown.
+21 -8
View File
@@ -1,22 +1,35 @@
{
"template_type": "ks2",
"template_version": 1,
"file": "ks2_ru_v1.xlsx",
"template_version": 2,
"file": "ks2_ru_v2.xlsx",
"format": "xlsx",
"language": "ru",
"description": "Акт КС-2, упрощённая табличная часть (DOC-B3)",
"description": "Акт КС-2, официальная унифицированная форма № КС-2 (DOC-C2)",
"table_marker": "##KS2_ROWS##",
"group_marker": "##KS2_GROUP##",
"totals_marker": "##KS2_TOTALS##",
"storno_marker": "##KS2_STORNO##",
"placeholders": [
"project_name",
"customer",
"contractor_name",
"object_name",
"contract_number",
"contract_date",
"currency",
"period",
"comment",
"ks2_number",
"ks2_date"
"ks2_date",
"period_from",
"period_to",
"contractor_signer_position",
"contractor_signer_name",
"customer_signer_position",
"customer_signer_name"
],
"row_placeholders": [
"source_number",
"name",
"unit",
"quantity",
"unit_price",
"amount"
]
}