mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Es koennen nun mehrere Buchungen auf einer Zahlungsbestaetigung gedruckt werden
This commit is contained in:
@@ -159,14 +159,10 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<fo:table-row line-height="10pt">
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungsdatum" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungsnr" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungstyp_kurzbz" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungstyp_beschreibung" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungstext" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="betrag" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="20mm" text-align="right"><xsl:text> </xsl:text><xsl:value-of select="betrag" /></fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet ><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
|
||||
</metaInformation>
|
||||
-->
|
||||
</xsl:stylesheet >
|
||||
@@ -60,15 +60,17 @@
|
||||
<?php
|
||||
$obj=new resturlaub($conn);
|
||||
$obj->getResturlaubFixangestellte();
|
||||
$i=0;
|
||||
|
||||
foreach ($obj->result as $row)
|
||||
{
|
||||
echo '<TR class="liste">';
|
||||
echo '<TR class="liste'.($i%2).'">';
|
||||
echo "<TD>$row->nachname</TD><TD>$row->vorname $row->vornamen</TD>";
|
||||
echo "<TD>$row->resturlaubstage</TD>";
|
||||
echo "<TD>$row->mehrarbeitsstunden</TD>";
|
||||
echo "<TD>$row->updateamum</TD>";
|
||||
echo '</TR>';
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Die Liste ist in Module geteilt. Innerhalb eines Moduls erfolgt die
|
||||
Auflistung nach Priorität (höchste oben).<br>
|
||||
<h2>Änderungen</h2>
|
||||
<ul>
|
||||
<li>aktuelles Datum im PDF</li>
|
||||
|
||||
</ul>
|
||||
<br>
|
||||
<h2>Fehler</h2>
|
||||
@@ -18,14 +18,6 @@ Auflistung nach Priorität (höchste oben).<br>
|
||||
<li> Anzahl: Anzahl stimmt nicht immer? </li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h2>Dokumente</h2>
|
||||
<ul>
|
||||
|
||||
<li> Inskriptionsbestätigung: Im Hauptmenü Dokumente
|
||||
wählbar. Wenn mehrere Studenten gewählt sind, werden mehrere
|
||||
Seiten im PDF produziert. (XSLT fehlt noch)</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h2>Statistik</h2>
|
||||
Als Hauptmenü
|
||||
<ul>
|
||||
@@ -80,6 +72,13 @@ allen auf einmal setzbar</li>
|
||||
<hr>
|
||||
<h2>Erledigte Anforderungen</h2>
|
||||
<ul>
|
||||
<li> Inskriptionsbestätigung: Im Hauptmenü Dokumente
|
||||
wählbar. Wenn mehrere Studenten gewählt sind, werden mehrere
|
||||
Seiten im PDF produziert. (XSLT fehlt noch)<br>
|
||||
14.06.2007 oesi<br><br></li>
|
||||
<li>aktuelles Datum im PDF<br>
|
||||
14.06.2007 oesi<br><br>
|
||||
</li>
|
||||
<li>->[Student] für ehem. Unterbrecher<br>
|
||||
13.06.2007 oesi<br><br></li>
|
||||
<li>Ab- Unterbrecher -> 0.Semester für alle Stg.<br>
|
||||
|
||||
@@ -58,8 +58,8 @@ if(isset($_GET['uid']))
|
||||
$params.='&uid='.$_GET['uid'];
|
||||
if(isset($_GET['person_id']))
|
||||
$params.='&person_id='.$_GET['person_id'];
|
||||
if(isset($_GET['buchungsnr']))
|
||||
$params.='&buchungsnr='.$_GET['buchungsnr'];
|
||||
if(isset($_GET['buchungsnummern']))
|
||||
$params.='&buchungsnummern='.$_GET['buchungsnummern'];
|
||||
if(isset($_GET['stg_kz']))
|
||||
$params.='&stg_kz='.$_GET['stg_kz'];
|
||||
if(isset($_GET['ss']))
|
||||
|
||||
@@ -57,7 +57,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<tree id="interessent-konto-tree" seltype="single" hidecolumnpicker="false" flex="1"
|
||||
<tree id="interessent-konto-tree" seltype="multi" hidecolumnpicker="false" flex="1"
|
||||
datasources="rdf:null" ref="http://www.technikum-wien.at/konto/liste"
|
||||
style="margin-left:10px;margin-right:10px;margin-bottom:5px;margin-top: 10px;" height="100px" enableColumnDrag="true"
|
||||
onselect="InteressentKontoAuswahl()"
|
||||
@@ -113,6 +113,8 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<button id="interessent-konto-button-neu" label="Neu" oncommand="InteressentKontoNeu();" disabled="true"/>
|
||||
<button id="interessent-konto-button-gegenbuchung" label="Gegenbuchung" oncommand="InteressentKontoGegenbuchung();" disabled="true"/>
|
||||
<button id="interessent-konto-button-loeschen" label="Loeschen" oncommand="InteressentKontoDelete();" disabled="true"/>
|
||||
<spacer flex="1"/>
|
||||
<button id="interessent-konto-button-zahlungsbestaetigung" label="Zahlungsbestaetigung drucken" oncommand="InteressentKontoZahlungsbestaetigung();" disabled="true"/>
|
||||
</hbox>
|
||||
<vbox hidden="true">
|
||||
<label value="Buchungsnr" control="interessent-konto-textbox-buchungsnr"/>
|
||||
|
||||
@@ -1083,6 +1083,39 @@ function InteressentDokumentTreeNichtabgegebenDatasourceRefresh()
|
||||
|
||||
// ***************** KONTO ****************************
|
||||
|
||||
// *****
|
||||
// * Druckt eine Zahlungsbestaetigung aus
|
||||
// *****
|
||||
function InteressentKontoZahlungsbestaetigung()
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var tree = document.getElementById('interessent-konto-tree');
|
||||
|
||||
var start = new Object();
|
||||
var end = new Object();
|
||||
var numRanges = tree.view.selection.getRangeCount();
|
||||
var paramList= '';
|
||||
|
||||
for (var t = 0; t < numRanges; t++)
|
||||
{
|
||||
tree.view.selection.getRangeAt(t,start,end);
|
||||
for (var v = start.value; v <= end.value; v++)
|
||||
{
|
||||
if(!tree.view.getParentIndex(v))
|
||||
{
|
||||
alert('Zum Drucken der Bestaetigung bitte die oberste Buchung waehlen');
|
||||
return false;
|
||||
}
|
||||
var col = tree.columns ? tree.columns["interessent-konto-tree-buchungsnr"] : "interessent-konto-tree-buchungsnr";
|
||||
var buchungsnr=tree.view.getCellText(v,col);
|
||||
paramList += ';'+buchungsnr;
|
||||
}
|
||||
}
|
||||
|
||||
//Ausgewaehlte Nr holen
|
||||
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=konto.rdf.php&xsl=Zahlung&buchungsnummern='+paramList,'Zahlungsbestaetigung', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Wenn eine buchung Ausgewaehlt wird, dann werden
|
||||
// * die Details geladen und angezeigt
|
||||
@@ -1199,6 +1232,7 @@ function InteressentKontoDisableFields(val)
|
||||
document.getElementById('interessent-konto-button-neu').disabled=val;
|
||||
document.getElementById('interessent-konto-button-gegenbuchung').disabled=val;
|
||||
document.getElementById('interessent-konto-button-loeschen').disabled=val;
|
||||
document.getElementById('interessent-konto-button-zahlungsbestaetigung').disabled=val;
|
||||
InteressentKontoDetailDisableFields(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<tree id="student-konto-tree" seltype="single" hidecolumnpicker="false" flex="1"
|
||||
<tree id="student-konto-tree" seltype="multi" hidecolumnpicker="false" flex="1"
|
||||
datasources="rdf:null" ref="http://www.technikum-wien.at/konto/liste"
|
||||
style="margin-left:10px;margin-right:10px;margin-bottom:5px;margin-top: 10px;" height="100px" enableColumnDrag="true"
|
||||
onselect="StudentKontoAuswahl()"
|
||||
|
||||
@@ -1574,24 +1574,31 @@ function StudentKontoZahlungsbestaetigung()
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var tree = document.getElementById('student-konto-tree');
|
||||
|
||||
if (tree.currentIndex==-1)
|
||||
{
|
||||
alert('Bitte zuerst eine Buchung auswaehlen');
|
||||
return;
|
||||
}
|
||||
var start = new Object();
|
||||
var end = new Object();
|
||||
var numRanges = tree.view.selection.getRangeCount();
|
||||
var paramList= '';
|
||||
|
||||
if(!tree.view.getParentIndex(tree.currentIndex))
|
||||
for (var t = 0; t < numRanges; t++)
|
||||
{
|
||||
alert('Zum Drucken der bestaetigung bitte die oberste Buchung waehlen');
|
||||
return false;
|
||||
tree.view.selection.getRangeAt(t,start,end);
|
||||
for (var v = start.value; v <= end.value; v++)
|
||||
{
|
||||
if(!tree.view.getParentIndex(v))
|
||||
{
|
||||
alert('Zum Drucken der Bestaetigung bitte die oberste Buchung waehlen');
|
||||
return false;
|
||||
}
|
||||
var col = tree.columns ? tree.columns["student-konto-tree-buchungsnr"] : "student-konto-tree-buchungsnr";
|
||||
var buchungsnr=tree.view.getCellText(v,col);
|
||||
paramList += ';'+buchungsnr;
|
||||
}
|
||||
}
|
||||
|
||||
//Ausgewaehlte Nr holen
|
||||
var col = tree.columns ? tree.columns["student-konto-tree-buchungsnr"] : "student-konto-tree-buchungsnr";
|
||||
var buchungsnr=tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
//Ausgewaehlte Nr holen
|
||||
var uid = document.getElementById('student-detail-textbox-uid').value;
|
||||
|
||||
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=konto.rdf.php&xsl=Zahlung&uid='+uid+'&buchungsnr='+buchungsnr,'Zahlungsbestaetigung', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=konto.rdf.php&xsl=Zahlung&uid='+uid+'&buchungsnummern='+paramList,'Zahlungsbestaetigung', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||
}
|
||||
|
||||
|
||||
|
||||
+39
-5
@@ -73,6 +73,15 @@ if(isset($_GET['buchungsnr']) && is_numeric($_GET['buchungsnr']))
|
||||
else
|
||||
$buchungsnr = '';
|
||||
|
||||
if(isset($_GET['buchungsnummern']))
|
||||
{
|
||||
$buchungsnummern = $_GET['buchungsnummern'];
|
||||
}
|
||||
else
|
||||
$buchungsnummern = '';
|
||||
|
||||
|
||||
|
||||
$datum = new datum();
|
||||
$konto = new konto($conn, null, true);
|
||||
|
||||
@@ -85,13 +94,11 @@ elseif($buchungsnr!='')
|
||||
if(!$konto->load($buchungsnr))
|
||||
die($konto->errormsg);
|
||||
}
|
||||
else
|
||||
die('Falsche Parameteruebergabe');
|
||||
|
||||
// ----------------------------------- RDF --------------------------------------
|
||||
$rdf_url='http://www.technikum-wien.at/konto';
|
||||
if ($xmlformat=='rdf')
|
||||
{
|
||||
|
||||
?>
|
||||
|
||||
<RDF:RDF
|
||||
@@ -178,7 +185,7 @@ elseif ($xmlformat=='xml')
|
||||
echo "<konto>\n";
|
||||
function drawrow_xml($row)
|
||||
{
|
||||
global $datum;
|
||||
global $datum, $btyp;
|
||||
|
||||
echo "
|
||||
<buchung>
|
||||
@@ -187,11 +194,12 @@ elseif ($xmlformat=='xml')
|
||||
<studiengang_kz><![CDATA[".$row->studiengang_kz."]]></studiengang_kz>
|
||||
<studiensemester_kurzbz><![CDATA[".$row->studiensemester_kurzbz."]]></studiensemester_kurzbz>
|
||||
<buchungsnr_verweis><![CDATA[".$row->buchungsnr_verweis."]]></buchungsnr_verweis>
|
||||
<betrag><![CDATA[".$row->betrag*(-1)."]]></betrag>
|
||||
<betrag><![CDATA[".sprintf('%.2f',$row->betrag*(-1))."]]></betrag>
|
||||
<buchungsdatum><![CDATA[".$datum->convertISODate($row->buchungsdatum)."]]></buchungsdatum>
|
||||
<buchungstext><![CDATA[".$row->buchungstext."]]></buchungstext>
|
||||
<mahnspanne><![CDATA[".$row->mahnspanne."]]></mahnspanne>
|
||||
<buchungstyp_kurzbz><![CDATA[".$row->buchungstyp_kurzbz."]]></buchungstyp_kurzbz>
|
||||
<buchungstyp_beschreibung><![CDATA[".$btyp[$row->buchungstyp_kurzbz]."]]></buchungstyp_beschreibung>
|
||||
<updateamum><![CDATA[".$row->updateamum."]]></updateamum>
|
||||
<updatevon><![CDATA[".$row->updatevon."]]></updatevon>
|
||||
<insertamum><![CDATA[".$row->insertamum."]]></insertamum>
|
||||
@@ -201,6 +209,7 @@ elseif ($xmlformat=='xml')
|
||||
{
|
||||
global $conn, $datum;
|
||||
$pers = new person($conn);
|
||||
|
||||
$pers->load($row->person_id);
|
||||
|
||||
$stg = new studiengang($conn, $row->studiengang_kz);
|
||||
@@ -222,9 +231,34 @@ elseif ($xmlformat=='xml')
|
||||
</person>";
|
||||
}
|
||||
|
||||
$buchungstyp = new konto($conn);
|
||||
$buchungstyp->getBuchungstyp();
|
||||
$btyp = array();
|
||||
|
||||
foreach ($buchungstyp->result as $row)
|
||||
$btyp[$row->buchungstyp_kurzbz]=$row->beschreibung;
|
||||
|
||||
if($person_id!='')
|
||||
foreach ($konto->result as $buchung)
|
||||
drawrow_xml($buchung);
|
||||
elseif($buchungsnummern!='')
|
||||
{
|
||||
$buchungsnr = split(';',$buchungsnummern);
|
||||
$drawperson=true;
|
||||
foreach($buchungsnr as $bnr)
|
||||
{
|
||||
if($bnr!='')
|
||||
{
|
||||
$konto->load($bnr);
|
||||
if($drawperson)
|
||||
{
|
||||
drawperson_xml($konto);
|
||||
$drawperson=false;
|
||||
}
|
||||
drawrow_xml($konto);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
drawperson_xml($konto);
|
||||
|
||||
Reference in New Issue
Block a user