<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../../../appl/shared/default.xsl"/>
<xsl:variable name="Rev">
  <!-- Revision van deze cust.xsl -->
  <xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>

	<xsl:template match="opdracht" mode="include">
		<table border="0" width="100%" cellpadding="2">
			<tr>
				<td colspan="4" class="caption" style="padding-top:20px;padding-bottom:20px">
					<b>
						<xsl:value-of select="opdrachttype/omschrijving"/>&#160;
						<xsl:value-of select="melding/discipline/srtdiscipline/prefix"/>
						<xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></b>
					<xsl:if test="geprint = 1">(kopie)</xsl:if>
				</td>
			</tr>
			<tr>
				<td width="16%"/>
				<td width="34%"/>
				<td width="16%" align="right">
					<b>Bedrijf:</b>
				</td>
				<td width="34%">
					<xsl:value-of select="uitvoerende/bedrijf/naam"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Contactpersoon:</b>
				</td>
				<td>
					<xsl:value-of select="contactpersoon/naam_full"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Telefoon:</b>
				</td>
				<td>
					<xsl:value-of select="contactpersoon/telefoon1"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Adres:</b>
				</td>
				<td>
					<xsl:value-of select="uitvoerende/bedrijf/post_adres"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Plaats:</b>
				</td>
				<td>
					<xsl:value-of select="uitvoerende/bedrijf/post_plaats"/>
				</td>
			</tr>
			<tr>
				<td align="right">
					<b>Contactpersoon:</b>
				</td>
				<td align="left">
					<xsl:value-of select="backoffice_contact/naam_full"/>
				</td>
				<td colspan="2"/>
			</tr>
			<tr>
				<td align="right">
					<b>Telefoon:</b>
				</td>
				<td align="left">
					<xsl:value-of select="backoffice_contact/telefoonnr"/>
				</td>
				<td align="right">
					<b>Overeenkomstnr.:</b>
				</td>
				<td align="left">
					<xsl:value-of select="uitvoerende/bedrijf/overeenkomst_nr"/>
				</td>
			</tr>
			<xsl:if test="melding/kenmerk[@naam='Ordernr']!=''">
				<tr>
					<td colspan="2"/>
					<td align="right">
						<b>Ordernr:</b>
					</td>
					<td align="left">
						<xsl:value-of select="melding/kenmerk[@naam='Ordernr']"/>
					</td>
				</tr>
			</xsl:if>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Datum gereed:</b>
				</td>
				<td align="left">
					<xsl:value-of select="datumgereed/datum"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Datum verzonden:</b>
				</td>
				<td align="left">
					<xsl:value-of select="datumverzonden/datum"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Status:</b>
				</td>
				<td align="left">
					<xsl:value-of select="status"/>
				</td>
			</tr>
			<tr>
				<td align="right" valign="top">
					<b>Omschrijving:</b>
				</td>
				<td align="left" colspan="3">
					<xsl:call-template name="linebreaks">
						<xsl:with-param name="string" select="omschrijving"/>
					</xsl:call-template>
				</td>
			</tr>
			<tr>
				<td colspan="4">
					<hr/>
				</td>
			</tr>
			<tr>
				<td colspan="4" align="center">
					<table width="100%" style="background-color:#EEEEEE;border: 1px solid blue">
						<tr>
							<td>
								<xsl:apply-templates select="melding" mode="include"/>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="4" height="30px" valign="center">
					<hr/>
				</td>
			</tr>
			<xsl:variable name="arbeid" select="uren*uurloon"/>
			<tr>
				<td align="right">
					<b>Uren:</b>
				</td>
				<td>
					<xsl:value-of select="uren"/>
					<b>&#xA0;à&#xA0;</b>&#x20AC;&#xA0;<xsl:value-of select="format-number(uurloon, '0,00', 'european')"/></td>
				<td align="right">
					<b>Arbeid:</b>
				</td>
				<td style="width:1in;text-align:right">&#x20AC;&#xA0;<xsl:value-of select="format-number($arbeid, '0,00', 'european')"/></td>
			</tr>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Materiaal:</b>
				</td>
				<td style="width:1in;text-align:right">&#x20AC;&#xA0;<xsl:value-of select="format-number(materiaal, '0,00', 'european')"/></td>
			</tr>
			<xsl:variable name="correctie0" select="$arbeid + materiaal"/>
			<xsl:variable name="correctie" select="kosten - $correctie0"/>
			<xsl:if test="$correctie!=0">
				<tr>
					<td colspan="2"/>
					<td align="right">
						<b>Correctie:</b>
					</td>
					<td style="width:1in;text-align:right">&#x20AC;&#xA0;<xsl:value-of select="format-number($correctie, '0,00', 'european')"/></td>
				</tr>
			</xsl:if>
			<tr>
				<td colspan="2"/>
				<td align="right">
					<b>Totaal:</b>
				</td>
				<td style="width:1in;text-align:right">
					<b>&#x20AC;&#xA0;<xsl:value-of select="format-number(kosten, '0,00', 'european')"/></b>
				</td>
			</tr>
		</table>
	</xsl:template>

</xsl:stylesheet>
<!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\reportsCache\CONNopdracht4038.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->