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
+2
View File
@@ -27,6 +27,7 @@ class KS2ExportHeader:
period_from: date | None
period_to: date | None
comment: str
status: str
@dataclass(frozen=True)
@@ -68,5 +69,6 @@ def build_ks2_export_dto(db, ks2_document) -> KS2ExportDocument:
period_from=ks2_document.reporting_period_from,
period_to=ks2_document.reporting_period_to,
comment=ks2_document.comment or "",
status=ks2_document.status or "",
)
return KS2ExportDocument(header=header, items=items, total=total)