VE am Bestellschein entfernt, da diese Spalte von Firmen oft mit der Menge verwechselt wird

This commit is contained in:
Andreas Österreicher
2011-11-07 14:11:47 +00:00
parent c635d9d3b0
commit c2f6e9385b
4 changed files with 1636 additions and 11 deletions
+22 -10
View File
@@ -382,8 +382,8 @@
<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="7.2mm"/>
<fo:table-column column-width="78.4mm"/>
<!-- <fo:table-column column-width="7.2mm"/> -->
<fo:table-column column-width="85.6mm"/><!-- 78.4mm -->
<fo:table-column column-width="34.8mm"/>
<fo:table-column column-width="14.8mm"/>
<fo:table-column column-width="19.8mm"/>
@@ -400,11 +400,13 @@
<!-- 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="8mm">
<!-- 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="78mm">
<!-- bezeichnung -->
@@ -484,8 +486,8 @@
<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="8mm"/>
<fo:table-column column-width="79mm"/>
<!-- <fo:table-column column-width="8mm"/> -->
<fo:table-column column-width="87mm"/> <!-- 79 -->
<fo:table-column column-width="35mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="20mm"/>
@@ -502,11 +504,13 @@
Menge
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="8mm" text-align="center">
VE
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="79mm" text-align="center">
Bezeichnung
@@ -665,7 +669,7 @@
<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="7.2mm"/>
<!-- <fo:table-column column-width="7.2mm"/>-->
<fo:table-column column-width="78.4mm"/>
<fo:table-column column-width="34.8mm"/>
<fo:table-column column-width="14.8mm"/>
@@ -683,11 +687,13 @@
<!-- 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="8mm">
<!-- 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="78mm">
<!-- bezeichnung -->
@@ -726,11 +732,13 @@
<!-- 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="8mm">
<!-- 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="78mm">
<!-- bezeichnung -->
@@ -766,8 +774,8 @@
<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="8mm"/>
<fo:table-column column-width="79mm"/>
<!-- <fo:table-column column-width="8mm"/>-->
<fo:table-column column-width="87mm"/>
<fo:table-column column-width="35mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="20mm"/>
@@ -784,11 +792,13 @@
Menge
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="8mm" text-align="center">
VE
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="80mm" text-align="center">
Bezeichnung
@@ -836,11 +846,13 @@
<xsl:value-of select="menge" />
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="8mm" text-align="center">
<xsl:value-of select="verpackungseinheit" />
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="78mm" padding-left="1mm">
<xsl:value-of select="beschreibung" />
+902
View File
@@ -0,0 +1,902 @@
<?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" xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon">
<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>ATU65565658</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:if test="string-length(kontaktperson/titelpre) &gt; 0">
<xsl:value-of select="kontaktperson/titelpre" /><xsl:text> </xsl:text>
</xsl:if>
<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.2mm" border-style="solid">
<fo:table-column column-width="25mm"/>
<fo:table-column column-width="59.5mm"/>
<fo:table-body>
<fo:table-row line-height="11pt">
<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" padding-left="1mm">
<xsl:value-of select="kundennummer" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="11pt">
<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" padding-left="1mm">
<xsl:value-of select="liefertermin" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="11pt">
<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" padding-left="1mm">
<xsl:value-of select="konto" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="11pt">
<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" content-width="55mm" vertical-align="top">
<fo:block font-size="10pt" padding-left="1mm" content-width="55mm">
<xsl:value-of select="substring(kostenstelle,0,30)" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Empfaenger -->
<fo:block-container position="absolute" top="59.4mm" left="10mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.2mm" border-style="solid">
<fo:table-column column-width="85.4mm"/>
<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="8pt">
<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">
<xsl:text>Tel.:</xsl:text> <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">
<xsl:text>Fax:</xsl:text> <xsl:value-of select="empfaenger/fax" />
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="7pt">
<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="95.6mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.3mm" border-style="solid">
<fo:table-column column-width="60.8mm"/>
<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="9pt">
<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="25pt">
<fo:table-cell border-style="solid" content-width="58mm" 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="81mm" left="96mm">
<fo:block font-size="10pt" padding-left="1mm" content-width="58mm">
<xsl:value-of select="substring(titel,0,70)" />
</fo:block>
</fo:block-container>
<!-- Aufteilung 1 -->
<fo:block-container position="absolute" top="40mm" left="156.5mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.2mm" border-style="solid">
<fo:table-column column-width="10mm"/>
<fo:table-column column-width="10mm"/>
<xsl:variable name="unique" select="1"/>
<fo:table-body>
<xsl:for-each select="aufteilungen_1/aufteilung">
<fo:table-row line-height="8pt">
<fo:table-cell display-align="center">
<fo:block font-size="7pt" content-width="7mm" text-align="left" padding-left="1mm">
<xsl:value-of select="oe" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="7pt" content-width="10mm" text-align="right">
<xsl:value-of select="prozent"/>%
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Rahmen Aufteilung 1 -->
<fo:block-container position="absolute" top="40mm" left="156.5mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.2mm" border-style="solid">
<fo:table-column column-width="10mm"/>
<fo:table-column column-width="10mm"/>
<xsl:variable name="unique" select="1"/>
<fo:table-body>
<xsl:for-each select="aufteilungen_1/aufteilung">
<fo:table-row line-height="8pt">
<fo:table-cell display-align="center" border-style="solid">
<fo:block font-size="7pt" content-width="7mm" text-align="center">
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center" border-style="solid">
<fo:block font-size="7pt" content-width="10mm">
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Aufteilung 2 -->
<fo:block-container position="absolute" top="40mm" left="176.6mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.2mm" border-style="solid">
<fo:table-column column-width="10mm"/>
<fo:table-column column-width="10mm"/>
<fo:table-body>
<xsl:for-each select="aufteilungen_2/aufteilung">
<fo:table-row line-height="8pt">
<fo:table-cell display-align="center">
<fo:block font-size="7pt" content-width="7mm" text-align="left" padding-left="1mm">
<xsl:value-of select="oe" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="7pt" content-width="10mm" text-align="right">
<xsl:value-of select="prozent" />%
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Rahmen Aufteilung 2 -->
<fo:block-container position="absolute" top="40mm" left="176.6mm">
<fo:table table-layout="fixed" border-collapse="collapse" border-width="0.2mm" border-style="solid">
<fo:table-column column-width="10mm"/>
<fo:table-column column-width="10mm"/>
<xsl:variable name="unique" select="1"/>
<fo:table-body>
<xsl:for-each select="aufteilungen_2/aufteilung">
<fo:table-row line-height="8pt">
<fo:table-cell display-align="center" border-style="solid">
<fo:block font-size="7pt" content-width="7mm" text-align="center">
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center" border-style="solid">
<fo:block font-size="7pt" content-width="10mm" text-align="right">
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</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="7.2mm"/> -->
<fo:table-column column-width="85.6mm"/><!-- 78.4mm -->
<fo:table-column column-width="34.8mm"/>
<fo:table-column column-width="14.8mm"/>
<fo:table-column column-width="19.8mm"/>
<fo:table-column column-width="11.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="8mm">
</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="78mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- 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="8mm">
<!-- 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="78mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</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="8mm"/> -->
<fo:table-column column-width="87mm"/> <!-- 79 -->
<fo:table-column column-width="35mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="12mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm" text-align="center">
Pos
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm" text-align="center">
Menge
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="8mm" text-align="center">
VE
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="79mm" text-align="center">
Bezeichnung
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="35mm" text-align="center">
ArtikelNr
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
Preis/VE
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="20mm" text-align="center">
Summe [EUR]
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="12mm" text-align="center">
UST
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="details"/>
</fo:table-body>
</fo:table>
</fo:block-container>
<xsl:apply-templates select="details_1"/>
<!-- 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" padding-left="1mm">
<xsl:value-of select="erstelldatum" />
</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" padding-left="1mm">
<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">
Telefonr.:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold" padding-left="1mm">
<xsl:text>+43 1 333 40 77 - 212</xsl:text>
</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_1">
<!-- Wenn zu viele Details vorhanden sind, dann eine neue seite beginnen und den Rest der Tabelle zeichnen -->
<fo:block font-size="16pt"
font-family="sans-serif"
space-after.optimum="15pt"
text-align="center"
break-before="page">
</fo:block>
<!-- Tabelle die ueber der Bestelldetail Tabelle liegt, um die vertikalen Linien zu Zeichnen -->
<fo:block-container position="absolute" top="25mm" 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="7.2mm"/>-->
<fo:table-column column-width="78.4mm"/>
<fo:table-column column-width="34.8mm"/>
<fo:table-column column-width="14.8mm"/>
<fo:table-column column-width="19.8mm"/>
<fo:table-column column-width="11.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="8mm">
</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="78mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="185mm">
<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="8mm">
</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="78mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Bestelldetails 2. Tabelle fuer neue Seite -->
<fo:block-container position="absolute" top="25mm" 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="8mm"/>-->
<fo:table-column column-width="87mm"/>
<fo:table-column column-width="35mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="12mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm" text-align="center">
Pos
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm" text-align="center">
Menge
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="8mm" text-align="center">
VE
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="80mm" text-align="center">
Bezeichnung
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="35mm" text-align="center">
ArtikelNr
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
Preis/VE
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="20mm" text-align="center">
Summe [EUR]
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="12mm" text-align="center">
UST
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="detail"/>
</fo:table-body>
</fo:table>
</fo:block-container>
</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="center">
<xsl:value-of select="menge" />
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="8mm" text-align="center">
<xsl:value-of select="verpackungseinheit" />
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="78mm" padding-left="1mm">
<xsl:value-of select="beschreibung" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="35mm">
<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="12mm" text-align="right">
<xsl:value-of select="mwst" /><xsl:text> %</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
<xsl:template match="aufteilungen">
<xsl:apply-templates select="aufteilung"/>
</xsl:template>
<xsl:template match="aufteilung">
<fo:table-row line-height="10pt">
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="7mm" text-align="left">
<xsl:value-of select="oe" />
</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="prozent" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
</xsl:stylesheet>
+17 -1
View File
@@ -111,7 +111,7 @@
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt" font-weight="bold">
<xsl:value-of select="rechnungsadresse/strasse" />
<xsl:text>Meldemannstraße 16 (Höchstädtplatz)</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
@@ -378,6 +378,21 @@
<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">
Telefonnr.:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold" padding-left="1mm">
+43 1 333 40 77 - 212
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
@@ -664,3 +679,4 @@
</fo:table-row>
</xsl:template>
</xsl:stylesheet>
+695
View File
@@ -0,0 +1,695 @@
<?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="10mm" left="8.5mm" height="15mm">
<fo:block text-align="left" line-height="18pt" font-family="sans-serif" font-size="16pt">
<fo:inline font-weight="900">
<xsl:text>Bestellung Nr.: </xsl:text><xsl:value-of select="bestell_nr" />
</fo:inline>
</fo:block>
</fo:block-container>
<!-- Logo -->
<fo:block>
<fo:external-graphic src="../skin/images/logo_gmbh.jpg" posx="140" posy="5" height="19mm" width="40mm"/>
</fo:block>
<fo:block-container position="absolute" top="20mm" left="145mm">
<fo:block font-size="8pt">
<xsl:text>Technikum Wien GmbH</xsl:text>
</fo:block>
</fo:block-container>
<!-- Empfaenger -->
<fo:block-container position="absolute" top="35mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="collapse">
<fo:table-column column-width="90.5mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="8pt">
<xsl:text>Firma:</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell>
<fo:block font-size="10pt">
<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">
<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">
<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">
<xsl:text>Tel.: </xsl:text><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">
<xsl:text>Fax: </xsl:text><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">
<xsl:text>Kundennr.: </xsl:text><xsl:value-of select="kundennummer" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Rechnungsanschrift / Lieferanschrift -->
<fo:block-container position="absolute" top="35mm" left="115.7mm">
<fo:table table-layout="fixed" border-collapse="collapse">
<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">
<xsl:text>Rechnungsadresse:</xsl:text>
</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">
<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" font-weight="bold">
<xsl:text>Meldemannstraße 16 (Höchstädtplatz)</xsl:text>
</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">
<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">
<fo:block font-size="10pt" font-weight="bold">
<xsl:text>Lieferadresse:</xsl:text>
</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">
<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" font-weight="bold">
<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" font-weight="bold">
<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="8pt">
<fo:table-cell>
<fo:block font-size="6pt">
<xsl:text>UID-Nummer: ATU 61910007</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="8pt">
<fo:table-cell>
<fo:block font-size="6pt">
<xsl:text>Firmenbuch: Handelsgericht Wien, FN 264937p</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</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="85.6mm"/><!-- 79,4 -->
<fo:table-column column-width="34.8mm"/>
<fo:table-column column-width="14.8mm"/>
<fo:table-column column-width="19.8mm"/>
<fo:table-column column-width="11.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">
</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="79mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="125mm">
<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">
</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="79mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</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="87mm"/><!-- 80 -->
<fo:table-column column-width="35mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="12mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm" text-align="center">
Pos
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm" text-align="center">
Menge
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm" text-align="center">
VE
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="80mm" text-align="center">
Bezeichnung
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="35mm" text-align="center">
ArtikelNr
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
Preis/VE
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="20mm" text-align="center">
Summe [EUR]
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="12mm" text-align="center">
UST
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="details"/>
</fo:table-body>
</fo:table>
</fo:block-container>
<xsl:apply-templates select="details_1"/>
<!-- 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" padding-left="1mm">
<xsl:value-of select="erstelldatum" />
</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" padding-left="1mm">
<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">
Telefonnr.:
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" font-weight="bold" padding-left="1mm">
+43 1 333 40 77 - 212
</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">
Einkauf:\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_1">
<!-- 2. Seite beginnen wenn zu viele Details vorhanden sind -->
<fo:block font-size="16pt"
font-family="sans-serif"
space-after.optimum="15pt"
text-align="center"
break-before="page">
</fo:block>
<!-- Tabelle die ueber der Bestelldetail Tabelle liegt, um die vertikalen Linien zu Zeichnen -->
<fo:block-container position="absolute" top="25mm" 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="85.6mm"/><!-- 79,4 -->
<fo:table-column column-width="34.8mm"/>
<fo:table-column column-width="14.8mm"/>
<fo:table-column column-width="19.8mm"/>
<fo:table-column column-width="11.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">
</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="79mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="130mm">
<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">
</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="79mm">
<!-- 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="34mm">
<!-- 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="12mm">
<!-- UST -->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<!-- Bestelldetails -->
<fo:block-container position="absolute" top="25mm" 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="87mm"/><!-- 80 -->
<fo:table-column column-width="35mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="12mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm" text-align="center">
Pos
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm" text-align="center">
Menge
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="7mm" text-align="center">
VE
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="80mm" text-align="center">
Bezeichnung
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="35mm" text-align="center">
ArtikelNr
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
Preis/VE
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="20mm" text-align="center">
Summe [EUR]
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" font-weight="bold" content-width="12mm" text-align="center">
UST
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="detail"/>
</fo:table-body>
</fo:table>
</fo:block-container>
</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="center">
<xsl:value-of select="menge" />
</fo:block>
</fo:table-cell>
<!--
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="7mm" text-align="center">
<xsl:value-of select="verpackungseinheit" />
</fo:block>
</fo:table-cell>
-->
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="79mm" padding-left="1mm">
<xsl:value-of select="beschreibung" />
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="center">
<fo:block font-size="8pt" content-width="35mm">
<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="12mm" text-align="right">
<xsl:value-of select="mwst" /><xsl:text> %</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
</xsl:stylesheet>