linking of consultation processes to entities in the database (not tested yet)

This commit is contained in:
2026-07-22 10:45:18 +02:00
parent 1cab78b2b4
commit c1843702f8
2 changed files with 32 additions and 17 deletions
+18 -1
View File
@@ -695,6 +695,23 @@ def page_consulting_linking_persons(
return linking_entries
# TODO wrap result
def page_consulting_eastablish_link(
vorgang_id: ConsId,
un_id: RecId | None,
pers_id: RecId | None,
) -> None:
stmt = (
sa.update(db.beratung_vorgang)
.where(db.beratung_vorgang.c.vorgang_id == vorgang_id)
.values(un_id=un_id, pers_id=pers_id)
)
with db.ENGINE.begin() as conn:
conn.execute(stmt)
def companyprofile_page_get_consultations(
un_id: RecId,
) -> CompanyProfileConsultations:
@@ -748,7 +765,7 @@ def companyprofile_page_get_consultations(
# // initial recording interaction
@wrap_result(10)
# TODO wrap result
def initrec_link_person_company(
un_id: RecId,
pers_id: RecId,