Erstversion PDF Bestellschein

This commit is contained in:
Andreas Österreicher
2011-01-26 16:13:28 +00:00
parent baed073b7a
commit 5ebb06c588
3 changed files with 597 additions and 6 deletions
+3 -2
View File
@@ -101,6 +101,8 @@ if(isset($_GET['uid']))
$params.='&uid='.$_GET['uid'];
if(isset($_GET['person_id']))
$params.='&person_id='.$_GET['person_id'];
if(isset($_GET['id']))
$params.='&id='.$_GET['id'];
if(isset($_GET['prestudent_id']))
$params.='&prestudent_id='.$_GET['prestudent_id'];
if(isset($_GET['buchungsnummern']))
@@ -243,7 +245,6 @@ if (!isset($_REQUEST["archive"]))
$proc->importStyleSheet($xsl_doc); // attach the xsl rules
$buffer = $proc->transformToXml($xml_doc);
if (!$fo2pdf->generatePdf($buffer, $filename, "D"))
{
echo('Failed to generate PDF');
@@ -352,4 +353,4 @@ else
else
echo 'Keine Berechtigung zum Speichern';
}
?>
?>
+6 -4
View File
@@ -83,7 +83,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
header("Content-type: application/xhtml+xml");
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
echo "\n<bestellung>\n";
echo "\n<bestellungen><bestellung>\n";
echo " <bestell_nr><![CDATA[$bestellung->bestell_nr]]></bestell_nr>\n";
echo " <titel><![CDATA[$bestellung->titel]]></titel>\n";
echo " <kontaktperson>\n";
@@ -134,11 +134,13 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
echo " <preisprove><![CDATA[",number_format($row->preisprove,2,',','.'),"]]></preisprove>\n";
echo " <mwst><![CDATA[",number_format($row->mwst,2,',','.'),"]]></mwst>\n";
$summe_brutto_detail=$row->menge*$row->preisprove/100*($row->mwst+100);
$summe_netto_detail=$row->menge*$row->preisprove;
echo " <summe_brutto><![CDATA[",number_format($summe_brutto_detail,2,',','.'),"]]></summe_brutto>\n";
echo " <summe_netto><![CDATA[",number_format($summe_netto_detail,2,',','.'),"]]></summe_netto>\n";
echo " </detail>\n";
$summe_brutto+=$summe_brutto_detail;
$summe_netto+=$row->menge*$row->preisprove;
$summe_mwst+=$row->mwst;
$summe_mwst+=$row->menge*$row->preisprove/100*$row->mwst;
}
echo " </details>\n";
@@ -146,7 +148,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
echo " <summe_netto>",number_format($summe_netto,2,',','.'),"</summe_netto>\n";
echo " <summe_mwst>",number_format($summe_mwst,2,',','.'),"</summe_mwst>\n";
echo " <summe_brutto>",number_format($summe_brutto,2,',','.'),"</summe_brutto>\n";
echo "</bestellung>";
echo "</bestellung></bestellungen>";
}
else
die('Parameter id missing');
@@ -154,4 +156,4 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
else
die('RDF not implemented! Use Parameter xmlformat=xml');
?>
?>
+588
View File
@@ -0,0 +1,588 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" indent="yes"/>
<xsl:template match="bestellungen">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin="5mm 25mm 5mm 25mm" master-name="PageMaster">
<fo:region-body margin="20mm 0mm 20mm 0mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<xsl:apply-templates select="bestellung"/>
</fo:root>
</xsl:template>
<xsl:template match="bestellung">
<fo:page-sequence master-reference="PageMaster">
<fo:flow flow-name="xsl-region-body">
<fo:block-container position="absolute" top="15mm" left="8.5mm" height="15mm">
<fo:block text-align="left" line-height="18pt" font-family="sans-serif" font-size="14pt">
<fo:inline font-weight="900">
<xsl:text>Bestellschein</xsl:text>
</fo:inline>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="20mm" left="10mm" height="15mm">
<fo:block text-align="left" line-height="18pt" font-family="sans-serif" font-size="12pt">
<fo:inline font-weight="900">
<xsl:text>Bestell-Nr.: </xsl:text>
</fo:inline>
<xsl:value-of select="bestell_nr" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="25mm" left="10mm" height="15mm">
<fo:block text-align="left" line-height="18pt" font-family="sans-serif" font-size="10pt">
<fo:inline font-weight="900">
<xsl:text>UID-Nummer: </xsl:text>
</fo:inline>
<xsl:text>ATU655565658</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="15mm" left="115mm" height="15mm">
<fo:block text-align="left" line-height="18pt" font-family="sans-serif" font-size="8pt">
<fo:inline font-weight="900">
<xsl:text>Kontaktperson: </xsl:text>
</fo:inline>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="19mm" left="115.7mm" height="15mm">
<fo:block text-align="left" line-height="18pt" font-family="sans-serif" font-size="8pt">
<xsl:value-of select="kontaktperson/titelpre" /><xsl:text> </xsl:text>
<xsl:value-of select="kontaktperson/vorname" /><xsl:text> </xsl:text>
<xsl:value-of select="kontaktperson/nachname" /><xsl:text> </xsl:text>
<xsl:value-of select="kontaktperson/titelpost" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="22mm" left="115.7mm" height="15mm">
<fo:block text-align="left" line-height="18pt" font-family="sans-serif" font-size="8pt">
<xsl:value-of select="kontaktperson/email" />
</fo:block>
</fo:block-container>
<!-- kundennummer, konto, kostenstelle -->
<fo:block-container position="absolute" top="40mm" left="10mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.2pt" border-style="solid">
<fo:table-column column-width="25mm"/>
<fo:table-column column-width="80mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" font-weight="bold">
Kunden-Nr.:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" content-width="50mm">
!! fehlt noch in xml !!
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" font-weight="bold">
Liefertermin:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" content-width="50mm">
!! gibts nicht mehr? !!
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" font-weight="bold">
Konto:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" content-width="50mm">
<xsl:value-of select="konto" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" font-weight="bold">
Kostenstelle:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" display-align="center">
<fo:block font-size="10pt" content-width="50mm">
<xsl:value-of select="kostenstelle" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Empfaenger -->
<fo:block-container position="absolute" top="57.5mm" left="10mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.3mm" border-style="solid">
<fo:table-column column-width="105.5mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" font-weight="bold">
Empfänger:
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" font-weight="bold">
<!-- empty -->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="empfaenger/name" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="empfaenger/strasse" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="empfaenger/plz" /><xsl:text> </xsl:text><xsl:value-of select="empfaenger/ort" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
Tel.: <xsl:value-of select="empfaenger/telefon" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
Fax: <xsl:value-of select="empfaenger/fax" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" font-weight="bold">
<!-- empty -->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Rechnungsanschrift / Lieferanschrift -->
<fo:block-container position="absolute" top="40mm" left="115.7mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.3mm" border-style="solid">
<fo:table-column column-width="80mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" font-weight="bold">
Firma (Rechnungsanschrift)
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="rechnungsadresse/name" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="rechnungsadresse/strasse" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="rechnungsadresse/plz" /><xsl:text> </xsl:text><xsl:value-of select="rechnungsadresse/ort" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt">
<!-- empty -->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-top-style="solid" display-align="center">
<fo:block font-size="10pt" font-weight="bold">
Lieferanschrift
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="lieferadresse/name" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="lieferadresse/strasse" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" padding-left="5mm">
<xsl:value-of select="lieferadresse/plz" /><xsl:text> </xsl:text><xsl:value-of select="lieferadresse/ort" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt">
<!-- empty -->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="23pt">
<fo:table-cell border-width="0.2mm" border-style="solid" content-length="80mm" vertical-align="top">
<fo:block font-size="10pt" padding-left="1mm">
<!-- Platzhalter fuer Titel -->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<fo:block-container position="absolute" top="82mm" left="116mm">
<fo:block font-size="10pt" padding-left="1mm" content-lengt="80mm">
<xsl:value-of select="titel" />
</fo:block>
</fo:block-container>
<!-- Bestelldetails -->
<fo:block-container position="absolute" top="95mm" left="10mm">
<fo:table table-layout="fixed" border-collapse="collapse">
<fo:table-column column-width="7mm"/>
<fo:table-column column-width="10mm"/>
<fo:table-column column-width="7mm"/>
<fo:table-column column-width="100mm"/>
<fo:table-column column-width="18mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="9mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
Pos
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
Menge
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
VE
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
Bezeichnung
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
ArtikelNr
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
Preis/VE
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
Summe [EUR]
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold">
UST
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="details"/>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Tabelle die ueber der Bestelldetail Tabelle liegt, um die vertikalen Linien zu Zeichnen -->
<fo:block-container position="absolute" top="95mm" left="9.8mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.2mm" border-style="solid">
<fo:table-column column-width="7mm"/>
<fo:table-column column-width="9.4mm"/>
<fo:table-column column-width="6.2mm"/>
<fo:table-column column-width="99.4mm"/>
<fo:table-column column-width="17.8mm"/>
<fo:table-column column-width="14.8mm"/>
<fo:table-column column-width="19.8mm"/>
<fo:table-column column-width="8.8mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm">
<!-- pos -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm">
<!-- menge -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm">
<!-- ve -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="100mm">
<!-- bezeichnung -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="18mm">
<!-- aritikelnummer -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm">
<!-- Preis/VE -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="20mm">
<!-- Summe [EUR] -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-bottom-style="solid" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="9mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="135mm">
<fo:table-cell border-width="0.2mm" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm">
<!-- pos -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm">
<!-- menge -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm">
<!-- ve -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="100mm">
<!-- bezeichnung -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm">
<!-- aritikelnummer -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm">
<!-- Preis/VE -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="20mm">
<!-- Summe [EUR] -->
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-left-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="9mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Fusszeile -->
<fo:block-container position="absolute" top="240mm" left="10mm">
<fo:block font-size="10pt">
Wir bitten um Angabe unserer Bestellnummer auf Rechnung und Lieferschein!\n
</fo:block>
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.3mm" border-style="solid">
<fo:table-column column-width="25mm"/>
<fo:table-column column-width="40mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold">
Erstellt am:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold">
<xsl:value-of select="datum" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold">
Wien, am:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold">
<xsl:value-of select="datum" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.3mm" border-left-style="solid" border-right-style="solid" border-bottom-style="solid">
<fo:table-column column-width="65.8mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" font-weight="bold">
Zentraleinkauf:\n\n\n\n
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Summe -->
<fo:block-container position="absolute" top="245mm" left="150mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.3mm" border-style="solid">
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="25mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold">
Total exkl.:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold" content-width="25mm" text-align="right">
<xsl:value-of select="summe_netto" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold">
USt.:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold" content-width="25mm" text-align="right">
<xsl:value-of select="summe_mwst" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold">
Total inkl.:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold" content-width="25mm" text-align="right">
<xsl:value-of select="summe_brutto" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template match="details">
<xsl:apply-templates select="detail"/>
</xsl:template>
<xsl:template match="detail">
<fo:table-row line-height="10pt">
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="7mm" text-align="right">
<xsl:value-of select="position" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="10mm" text-align="right">
<xsl:value-of select="menge" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="7mm">
<xsl:value-of select="verpackungseinheit" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="100mm">
<xsl:value-of select="beschreibung" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="18mm">
<xsl:value-of select="artikelnummer" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="15mm" text-align="right">
<xsl:value-of select="preisprove" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="20mm" text-align="right">
<xsl:value-of select="summe_netto" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="9mm" text-align="right">
<xsl:value-of select="mwst" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
</xsl:stylesheet>