From eee6f918cdafcb7e2eb1b44f2266acfc34c72b95 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Thu, 19 Oct 2023 13:05:02 +0200 Subject: [PATCH] add oe_typ_kurzbz and oe_typ_bezeichnung to use in labels --- .../vertragsbestandteil/VertragsbestandteilFunktion.php | 4 +++- .../models/vertragsbestandteil/Vertragsbestandteil_model.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/application/libraries/vertragsbestandteil/VertragsbestandteilFunktion.php b/application/libraries/vertragsbestandteil/VertragsbestandteilFunktion.php index 28ac8a53c..d935526a2 100644 --- a/application/libraries/vertragsbestandteil/VertragsbestandteilFunktion.php +++ b/application/libraries/vertragsbestandteil/VertragsbestandteilFunktion.php @@ -158,7 +158,9 @@ EOTXT; 'funktion_bezeichnung' => $data->funktion_bezeichnung, 'oe_kurzbz' => $data->oe_kurzbz, 'oe_bezeichnung' => $data->oe_bezeichnung, - 'oe_kurzbz_sap' => $data->oe_kurzbz_sap + 'oe_kurzbz_sap' => $data->oe_kurzbz_sap, + 'oe_typ_kurzbz' => $data->oe_typ_kurzbz, + 'oe_typ_bezeichnung' => $data->oe_typ_bezeichnung ); } diff --git a/application/models/vertragsbestandteil/Vertragsbestandteil_model.php b/application/models/vertragsbestandteil/Vertragsbestandteil_model.php index 233df350c..028080c4c 100644 --- a/application/models/vertragsbestandteil/Vertragsbestandteil_model.php +++ b/application/models/vertragsbestandteil/Vertragsbestandteil_model.php @@ -24,6 +24,7 @@ class Vertragsbestandteil_model extends DB_Model v.*, bf.funktion_kurzbz, funktion.beschreibung funktion_bezeichnung, oe.oe_kurzbz, oe.bezeichnung oe_bezeichnung, sap.oe_kurzbz_sap, + oet.organisationseinheittyp_kurzbz AS oe_typ_kurzbz, oet.bezeichnung AS oe_typ_bezeichnung, ft.freitexttyp_kurzbz, ft.titel, ft.anmerkung, f.benutzerfunktion_id, k.karenztyp_kurzbz, k.geplanter_geburtstermin, k.tatsaechlicher_geburtstermin, @@ -43,6 +44,8 @@ class Vertragsbestandteil_model extends DB_Model public.tbl_funktion funktion USING(funktion_kurzbz) LEFT JOIN public.tbl_organisationseinheit oe USING(oe_kurzbz) + LEFT JOIN + public.tbl_organisationseinheittyp oet USING(organisationseinheittyp_kurzbz) LEFT JOIN sync.tbl_sap_organisationsstruktur sap USING(oe_kurzbz) LEFT JOIN