diff --git a/vilesci/bis/personalmeldung.php b/vilesci/bis/personalmeldung.php index 5ca6e8b52..534b54ed9 100644 --- a/vilesci/bis/personalmeldung.php +++ b/vilesci/bis/personalmeldung.php @@ -115,7 +115,7 @@ $stg_obj = new studiengang(); $stg_obj->getAll(null,false); $qry=" - SELECT DISTINCT ON (UID) * + SELECT DISTINCT ON (UID) *, transform_geschlecht(tbl_person.geschlecht, tbl_person.gebdatum) as geschlecht_imputiert FROM public.tbl_mitarbeiter JOIN public.tbl_benutzer ON(mitarbeiter_uid=uid) @@ -175,7 +175,12 @@ if($result = $db->db_query($qry)) ".sprintf("%015s",$row->personalnummer)." ".date("dmY", $datumobj->mktime_fromdate($row->gebdatum))." - ".strtoupper($row->geschlecht)." + ".strtoupper($row->geschlecht).""; + if ($row->geschlecht == 'x') + $person_content.=" + ".strtoupper($row->geschlecht_imputiert).""; + + $person_content.=" ".$row->ausbildungcode.""; $qryvw="SELECT * FROM bis.tbl_bisverwendung WHERE mitarbeiter_uid=".$db->db_add_param($row->mitarbeiter_uid)." AND habilitation=true;"; if($resultvw=$db->db_query($qryvw))