Umzugsvergütung zum Testen

This commit is contained in:
aschwarz
2024-01-19 09:15:54 +01:00
parent c2a15eb1ed
commit f8488609a2
8 changed files with 349 additions and 205 deletions

View File

@ -308,7 +308,7 @@ $pdf->SetX(24);
$db = dbconnect();
if(!isset($hist)){
$query = "SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(beginn, '%Y%m%d') beginnform, date_format(ende, '%d.%m.%Y') ende, dst_id,abteilung, e.bezeichnung, saaid
$query = "SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(beginn, '%Y%m%d') beginnform, date_format(ende, '%d.%m.%Y') ende, dst_id,abteilung, e.bezeichnung, saaid, umzugsverg
FROM stan_antrag a, stan_vertiefungsbereich e
WHERE a.vert_bereich=e.vbid
AND a.uid='$uid1'
@ -323,7 +323,7 @@ $pdf->SetX(24);
$result = $db->query ($query)
or die ("Cannot execute query1");
}else{
$query = "SELECT date_format( beginn, '%d.%m.%Y' ) beginn, date_format( beginn, '%Y%m%d' ) beginnform, date_format( ende, '%d.%m.%Y' ) ende, dst_id, abteilung, e.bezeichnung, a.saaid
$query = "SELECT date_format( beginn, '%d.%m.%Y' ) beginn, date_format( beginn, '%Y%m%d' ) beginnform, date_format( ende, '%d.%m.%Y' ) ende, dst_id, abteilung, e.bezeichnung, a.saaid, umzugsverg
FROM stan_antrag a, stan_vertiefungsbereich e, stan_printqueue_hist b
WHERE a.vert_bereich = e.vbid
AND a.saaid=b.saaid
@ -337,7 +337,7 @@ $pdf->SetX(24);
if(isset($hist2)){
# Bei der Historie 2 Gesamtdruck, werden über pdf_gen_ges_akte EZS und AES gedruckt, daher hier nicht den höchsten Status sondern wirklich Erstanträge
$query = "SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(beginn, '%Y%m%d') beginnform, date_format(ende, '%d.%m.%Y') ende, dst_id,abteilung, e.bezeichnung, saaid
$query = "SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(beginn, '%Y%m%d') beginnform, date_format(ende, '%d.%m.%Y') ende, dst_id,abteilung, e.bezeichnung, saaid, umzugsverg
FROM stan_antrag a, stan_vertiefungsbereich e
WHERE a.vert_bereich=e.vbid
AND a.uid='$uid1'
@ -401,7 +401,13 @@ $pdf->SetX(24);
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
if($row['umzugsverg'] == 'J'){
$data[1]['TEXT'] = "$rowdata3[bez]*";
$hinweis_umzug=1;
}else{
$data[1]['TEXT'] = "$rowdata3[bez]";
$hinweis_umzug=0;
}
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
@ -452,6 +458,13 @@ if(!isset($hist) or !isset($hist2)){
#$pdf->SetX(24);
#$pdf->MultiCell(175, 3.9, "Beiliegende Anlagen sind Bestandteil des Zuweisungsbescheids.", 0, 'L');
if($hinweis_umzug == 1){
$pos=$pdf->GetY()+3;
$pdf->SetFont('Arial', '', 11);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(175, 3.9, "* Für diese Stelle wurde eine Umzugsvergütung gewährt.", 0, 'J');
}
$pos=$pdf->GetY()+3.0;