feat: KS-3 official Word form with marker template and single-table flow

Rewrite the KS-3 print renderer on the DOC-C4–DOC-C7 architecture:

- working marker template ks3_ru_markers.docx from the official blank;
  static fields via named markers, values only from KS3ExportHeader/Item
- one dynamic works table with w:tblHeader page-break repetition, no
  page/subtable split; final Итого block once at the end, VAT rows left
  empty (unsupported by the DTO)
- unified money formatter (space thousands, comma decimals)
- UI keeps only КС-3 (Word); Excel endpoint remains for internal tests
- DB, KS3↔KS2 links, issue/cancel, payments and KS-2 untouched
This commit is contained in:
Арсентьев Александр
2026-10-03 22:01:37 +03:00
parent bd64bb6307
commit 2b309b007c
6 changed files with 721 additions and 304 deletions
+1 -2
View File
@@ -30,8 +30,7 @@
<p><strong>Комментарий:</strong> {{ document.comment }}</p>
{% endif %}
<div class="mt-2">
<a href="/projects/{{ project.id }}/ks3/{{ document.id }}/export/excel" class="btn btn-outline-success btn-sm">📊 Excel</a>
<a href="/projects/{{ project.id }}/ks3/{{ document.id }}/export/word" class="btn btn-outline-primary btn-sm">📄 Word</a>
<a href="/projects/{{ project.id }}/ks3/{{ document.id }}/export/word" class="btn btn-outline-primary btn-sm">КС-3 (Word)</a>
{% if document.status != 'draft' %}
<a href="/projects/{{ project.id }}/ks3/{{ document.id }}/artifact" class="btn btn-outline-dark btn-sm">
📎 Официальная форма (Word)