feat: enforce KS-2/KS-3 stornation integrity

This commit is contained in:
Арсентьев Александр
2026-09-27 18:12:19 +03:00
parent 80b7d4732e
commit 9992a435b2
15 changed files with 947 additions and 20 deletions
+7
View File
@@ -37,6 +37,13 @@ def render_ks2_excel(doc: KS2ExportDocument) -> bytes:
c.alignment = Alignment(horizontal="center")
row += 1
if h.status == "cancelled":
ws.merge_cells(start_row=row, start_column=1, end_row=row, end_column=col_count)
c = ws.cell(row=row, column=1, value="СТОРНИРОВАН")
c.font = Font(bold=True, size=12, color="C00000")
c.alignment = Alignment(horizontal="center")
row += 1
# Unified project requisites
header_lines = project_requisite_lines(
project_name=h.project_name,