generated from dopt-python/py311
linking of consultation processes to entities in the database (not tested yet)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user