diff --git a/include/phrasen.class.php b/include/phrasen.class.php
index 964908dcd..20c71d8dd 100644
--- a/include/phrasen.class.php
+++ b/include/phrasen.class.php
@@ -121,7 +121,7 @@ class phrasen extends basis_db
* Wobei x durch den Index+1 im Array zu ersetzten ist. zB "%2$s" um die Variable $value[1] auszugeben
* naehere Infos siehe sprintf
*
- * @param $key Key der Phrase
+ * @param $key String Key der Phrase
* @param $value Array mit Parametern fuer die Phrase
*/
public function t($key, $value=array())
diff --git a/vilesci/bis/studentenmeldung.php b/vilesci/bis/studentenmeldung.php
index 8754cb444..8c7e31d36 100644
--- a/vilesci/bis/studentenmeldung.php
+++ b/vilesci/bis/studentenmeldung.php
@@ -940,7 +940,7 @@ function GenerateXMLStudentBlock($row)
}
if($row->svnr!='' && $row->svnr!=null && substr($row->svnr,4,6)!=$row->vdat && substr($row->vdat,0,4)!='0101' && substr($row->vdat,0,4)!='0107')
{
- $error_log_hinweis.=(!empty($error_log_hinweis)?', ':'')."SVNR ('".$row->svnr."') enthält Geburtsdatum (".$datum_obj->formatDatum($row->gebdatum,'d.m.Y').") nicht";
+ $error_log_hinweis.=(!empty($error_log_hinweis)?', ':'')."SVNR ('".$row->svnr."') enthält Geburtsdatum (".$datum_obj->formatDatum($row->gebdatum,'d.m.Y').") nicht (Nicht BIS-Relevant)";
}
if($row->ersatzkennzeichen!='' && $row->ersatzkennzeichen!=null && substr($row->ersatzkennzeichen,4,6)!=$row->vdat)
{
@@ -972,7 +972,7 @@ function GenerateXMLStudentBlock($row)
}
if($row->bpk == '' || $row->bpk == null)
{
- $error_log_hinweis .= (!empty($error_log_hinweis) ? ', ' : '') . "bPK fehlt";
+ $error_log .= (!empty($error_log) ? ', ' : '') . "bPK fehlt";
}
if($row->bpk != '' && $row->bpk != null)
{
@@ -1300,6 +1300,12 @@ function GenerateXMLStudentBlock($row)
$gserror.=" Gemeinsame Studien - Partner Code ist leer\n";
if($rowgs->programm_code=='')
$gserror.=" Gemeinsame Studien - Programm ist leer\n";
+ // Check, wenn Staatsbuergerschft oder Geburtsnation nicht Ö, dann vermutlich Externer
+ if ($studtyp=='I' && (($row->staatsbuergerschaft != '' && $row->staatsbuergerschaft != 'A') || ($row->geburtsnation != '' && $row->geburtsnation != 'A')))
+ {
+ $error_log_hinweis .= (!empty($error_log_hinweis) ? ', ' : '') . "Hinweis: Person scheint aufgrund der Staatsbürgerschaft externer Studierende*r zu sein. Bitte prüfen und ggf. korrigieren.";
+ //$gserror .= " Studierende*r scheint externer Studierende*r zu sein. Bitte prüfen und ggf. korrigieren.\n";
+ }
if($gserror!='')
{
@@ -1340,7 +1346,7 @@ function GenerateXMLStudentBlock($row)
}
if($row_ap->sponsion=='' || $row_ap->sponsion==null)
{
- $error_log_hinweis.=(!empty($error_log_hinweis)?', ':'')."Datum der Sponsion ('".$row_ap->sponsion."')";
+ $error_log_hinweis.=(!empty($error_log_hinweis)?', ':'')."Datum der Sponsion ('".$row_ap->sponsion."') (Nicht BIS-Relevant)";
}
$ap++;
}
@@ -1354,6 +1360,26 @@ function GenerateXMLStudentBlock($row)
die("\nQry Failed:".$qry_ap);
}
}
+
+ //Wenn Beendigungsdatum VOR der Meldung und kein Absolvent vorhanden
+ if($aktstatus!='Absolvent' && !$gemeinsamestudien)
+ {
+ $qry_abs="SELECT * FROM lehre.tbl_abschlusspruefung WHERE student_uid=".$db->db_add_param($row->student_uid)."
+ AND abschlussbeurteilung_kurzbz!='nicht' AND abschlussbeurteilung_kurzbz IS NOT NULL
+ AND datum <= '".$bisdatum."'::date";
+ if($result_abs = $db->db_query($qry_abs))
+ {
+ while($row_abs = $db->db_fetch_object($result_abs))
+ {
+ $error_log.=(!empty($error_log)?', ':'')."Wenn das Abschlussdatum (".$datum_obj->formatDatum($row_abs->datum,'d.m.Y').") vor der BIS-Meldung liegt, muss ein Absolventenstatus vorhanden sein";
+ }
+ }
+ else
+ {
+ die("\nQry Failed:".$qry_abs);
+ }
+ }
+
if($orgform_code_array[$storgform]!=1) // Wenn nicht Vollzeit
{
if($row->berufstaetigkeit_code=='' || $row->berufstaetigkeit_code==null)
@@ -1420,7 +1446,7 @@ function GenerateXMLStudentBlock($row)
}
if($error_log_hinweis != '')
{
- $v.=" ".$error_log_hinweis." (Nicht BIS-Relevant)\n";
+ $v.=" ".$error_log_hinweis."\n";
$error_log_hinweis = '';
}
$anzahl_fehler++;
@@ -1434,7 +1460,7 @@ function GenerateXMLStudentBlock($row)
if($error_log_hinweis != '')
{
$v.="Bei Student (UID, Nachname, Vorname) '".$row->student_uid."', '".$row->nachname."', '".$row->vorname."' ($laststatus->status_kurzbz): \n";
- $v.=" ".$error_log_hinweis." (Nicht BIS-Relevant)\n\n";
+ $v.=" ".$error_log_hinweis."\n\n";
$error_log_hinweis = '';
}