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:
@@ -11,7 +11,7 @@
|
||||
<div class="d-flex justify-content-between align-items-start mb-4 gap-3 flex-wrap">
|
||||
<div>
|
||||
<h1>Daily Report</h1>
|
||||
<div class="text-muted">{{ report.report_date.strftime('%d.%m.%Y') }} · {{ report.system.name if report.system else 'Проектные позиции без системы' }}</div>
|
||||
<div class="text-muted">{{ report.report_date.strftime('%d.%m.%Y') }} · {{ system_names|join(', ') if system_names else 'Проектные позиции без системы' }}</div>
|
||||
{% if report.notes %}<p class="mt-2">{{ report.notes }}</p>{% endif %}
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
@@ -35,7 +35,7 @@
|
||||
<thead><tr><th>Раздел</th><th>№</th><th>Рабочая позиция</th><th>Ед.</th><th class="text-end">План</th><th class="text-end">В этом отчёте</th><th class="text-end">Закрыто КС-2</th><th class="text-end">Доступно</th></tr></thead>
|
||||
<tbody>{% for row in rows %}
|
||||
<tr class="{% if row.over_plan %}table-warning{% endif %}">
|
||||
<td>{{ row.item.section.name if row.item.section else '—' }}</td>
|
||||
<td>{{ row.item.section.name if row.item.section else '—' }}<div class="small text-muted">{{ row.item.system.name if row.item.system else 'Без системы' }}</div></td>
|
||||
<td>{{ row.item.source_number or '' }}</td>
|
||||
<td>{{ row.item.name }}</td>
|
||||
<td>{{ row.item.unit or '' }}</td>
|
||||
|
||||
Reference in New Issue
Block a user