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
@@ -26,6 +26,7 @@ class KS3ExportHeader:
period_from: date | None
period_to: date | None
comment: str
status: str
@dataclass(frozen=True)
@@ -68,5 +69,6 @@ def build_ks3_export_dto(db, ks3_document) -> KS3ExportDocument:
period_from=ks3_document.reporting_period_from,
period_to=ks3_document.reporting_period_to,
comment=ks3_document.comment or "",
status=ks3_document.status or "",
)
return KS3ExportDocument(header=header, items=items, total=total)