Lege Anlagen und Versandbelege direkt am Schriftstueck ab, damit die Zuordnung aus dem Vorgang gezogen werden kann und mehrere Belege an einem Versand bleiben.
Deploy Development / deploy (push) Successful in 26s
Test Suite / pytest-backend (push) Successful in 1m35s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 8s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-18 10:35:32 +02:00
1 parent c138df5e68
commit c774fb7206
9 files changed
+663 -200

No files matched your search

+21
View File
@@ -14,6 +14,7 @@ from app.api.schemas import (
AttachmentDetachIn,
AttachmentOrderIn,
DispatchCorrectIn,
DispatchEvidenceDetachIn,
DispatchEvidenceIn,
DispatchIn,
FoldIn,
@@ -22,6 +23,7 @@ from app.correspondence import (
GapNote,
add_dispatch_evidence,
assign_attachments,
detach_dispatch_evidence,
correct_dispatch,
detach_attachment,
dispatch_view,
@@ -173,6 +175,25 @@ def post_evidence(
)
@router.post("/api/v1/dispatches/{dispatch_id}/evidence/{element_id}/detach", status_code=204)
def post_detach_evidence(
dispatch_id: UUID,
element_id: UUID,
body: DispatchEvidenceDetachIn,
principal: Principal = Depends(get_principal),
conn: Connection = Depends(get_conn),
):
detach_dispatch_evidence(
conn,
principal.account_id,
dispatch_id,
element_id,
body.expected_version,
_ctx(body.context),
_placement(body.placement),
)
@router.post("/api/v1/dispatches/{dispatch_id}/correct")
def post_correct(
dispatch_id: UUID,