<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" version="1.0">
<xsl:import href="../../../appl/shared/default.xsl"/>
<xsl:import href="../../aaxx/xsl/default.xsl"/>

<xsl:variable name="Rev">
  <!-- Revision van deze cust.xsl -->
  <xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>

  <xsl:template name="pageheader">
    <table border="0" width="100%">
      <tr>
        <td width="34%" bordercolor="#FFFFFF" align="center">
          <xsl:choose>
            <xsl:when test="$mode='email'">
              <img src="cid:tmpl_logo.gif"/>
            </xsl:when>
            <xsl:otherwise>
              <xsl:element name="img">
                <xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo_sm.gif</xsl:attribute>
              </xsl:element>
            </xsl:otherwise>
          </xsl:choose>
        </td>
        <td width="33%"></td>
        <td width="33%" align="right" valign="bottom" style="text-align:right">
          <b>Afdrukdatum:&#xA0;</b>
          <xsl:value-of select="//header/dateTime"/>
        </td>
      </tr>
    </table>
  </xsl:template>

	<xsl:template name="pageheader_opdr">
		<xsl:param name="opdr_type"/>
		<xsl:param name="opdr_nummer"/>
		<table border="0" width="100%">
			<tr>
				<td width="50%" bordercolor="#FFFFFF" align="center">
					<xsl:choose>
						<xsl:when test="$mode='email'">
							<img src="cid:tmpl_logo.gif"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:element name="img">
								<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo_sm.gif</xsl:attribute>
							</xsl:element>
						</xsl:otherwise>
					</xsl:choose>
				</td>
				<td width="50%" align="right" valign="bottom" style="text-align:right; font-size:18;">
					<b>
					  <xsl:choose>
					  <xsl:when test="$opdr_type='RFQ'">
					  Request for Quotation
					  </xsl:when>
					  <xsl:when test="$opdr_type='Contractorder (bijlage)'">
					  Contractorder (attachment)
					  </xsl:when>
					  <xsl:otherwise>
						<xsl:value-of select="$opdr_type"/>
						</xsl:otherwise>
						</xsl:choose>
					</b>
				</td>
			</tr>
			<tr>
				<td colspan="2" style="text-align:center;">
					<table border="1" bordercolor="#000000">
						<tr>
							<td>
								<xsl:choose>
									<xsl:when test="$opdr_type='Docket'">Docket number: <span class="tekstkop">LB<xsl:value-of select="$opdr_nummer"/></span><b> (To be incorporated on all documents related to this docket)</b></xsl:when>
									<xsl:when test="$opdr_type='Complaint'">Complaint number: <span class="tekstkop">LB<xsl:value-of select="$opdr_nummer"/></span><b> (To be incorporated on all documents related to this complaint)</b></xsl:when>
									<xsl:when test="$opdr_type='RFQ'">Request for Quotation: <span class="tekstkop">LB<xsl:value-of select="$opdr_nummer"/></span><b> (To be incorporated on all documents related to this RFQ)</b></xsl:when>
									<xsl:when test="$opdr_type='Projectorder'">Projectorder: <span class="tekstkop">LB<xsl:value-of select="$opdr_nummer"/></span><b> (To be incorporated on all documents related to this order)</b></xsl:when>
									<xsl:when test="$opdr_type='Contractorder'">Contractorder: <span class="tekstkop">LB<xsl:value-of select="$opdr_nummer"/></span><b> (To be incorporated on all documents related to this order)</b></xsl:when>
									<xsl:when test="$opdr_type='Contractorder (bijlage)'">Contractorder attachment: <span class="tekstkop">LB<xsl:value-of select="$opdr_nummer"/></span><b> (To be incorporated on all documents related to this order)</b></xsl:when>
									<xsl:when test="$opdr_type='Workorder'">Workorder: <span class="tekstkop">LB<xsl:value-of select="$opdr_nummer"/></span><b> (Please use this number in all correspondence with AAFM)</b></xsl:when>
									<xsl:when test="$opdr_type='PurchaseOrder'">PurchaseOrder: <span class="tekstkop">LBBE<xsl:value-of select="$opdr_nummer"/></span><b> (Please use this number in all correspondence with AAFM)</b></xsl:when>
									<xsl:otherwise>Workorder: <span class="tekstkop"><xsl:value-of select="$opdr_nummer"/></span><b> (Please use this number in all correspondence with AAFM)</b></xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="servicedesk">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Servicedesk LyondellBasell:</span>
					<br/>Phone number +31 (0)40 2332 866
<br/>
		 P.O. Box 80009<br/>
		 5600 JZ&#xA0;&#xA0;Eindhoven<br/>
		 E-mail: ServicedeskLyondellBasell@aa-fm.com<br/>
					</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="gereedmelden">
		<table border="0" width="100%">
			<tr>
				<td><br/>Work complete via the Facility Desk by e-mail.</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="factuuradres">
	<xsl:param name="opdr_type"/>
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Invoice address:</span>
					<br/>AAFM Facility Management BV<br/>
		 attn Accounts payable account LyondellBasell<br/>
		 P.O. Box 80009<br/>
		 5600 JZ&#xA0;&#xA0;Eindhoven</td>
		 </tr>
		</table>
	</xsl:template>

	<xsl:template match="bedrijf">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Supplier:</span>
					<br/>
					<xsl:value-of select="naam"/>
					<br/>
					<xsl:value-of select="post_adres"/>
					<br/>
					<xsl:value-of select="post_postcode"/>&#xA0;&#xA0;<xsl:value-of select="post_plaats"/> <br/>
		 Tel nr: <xsl:value-of select="telefoon"/> <br/>
		 Fax nr: <xsl:value-of select="fax"/></td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="leverancier">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Supplier:</span>
					<br/>
					<xsl:value-of select="uitvoerende/bedrijf/naam"/>
					<br/>
					<xsl:value-of select="uitvoerende/bedrijf/post_adres"/>
					<br/>
					<xsl:value-of select="uitvoerende/bedrijf/post_postcode"/>&#xA0;&#xA0;<xsl:value-of select="uitvoerende/bedrijf/post_plaats"/> <br/>
		 Phone number: <xsl:value-of select="uitvoerende/bedrijf/telefoon"/> <br/>
		 Fax number: <xsl:value-of select="uitvoerende/bedrijf/fax"/></td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="bezoekadres">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Location/delivery address:</span>
					<br/>LyondellBasell<br/>
					<xsl:value-of select="melding/plaats/regio/district/locatie/omschrijving"/>
					Gebouw <xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/naam"/>
					<br/>
					<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/afleveradres/bezoek_adres"/>
					<br/>
					<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/afleveradres/bezoek_postcode"/>&#xA0;&#xA0;
					<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/afleveradres/bezoek_plaats"/>
				</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template match="afleveradres">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Location/delivery address:</span>
					<br/>
					Ref. Nr. Supplier: <xsl:value-of select="key"/>
					<br/>
					<xsl:value-of select="naam"/>
					<br/>
					<xsl:if test="/facilitor/bestelopdracht/bestelling/plaats != ''">
						<xsl:value-of select="/facilitor/bestelopdracht/bestelling/plaats"/>
						<br/>
					</xsl:if>
					<xsl:value-of select="bezoek_adres"/>
					<br/>
					<xsl:value-of select="bezoek_postcode"/>&#xA0;&#xA0;
					<xsl:value-of select="bezoek_plaats"/>
					</td>
			</tr>
		</table>
	</xsl:template>



	<xsl:template name="indiengeenbedrag">
		<table border="1" width="100%" bordercolor="#000000">
			<tr>
				<td>
					<span style="font-size:9">If this order doesn't contain a value, the maximum value is 500 euro.
You need to confirm the actual amount within 8 working days to the AAFM Servicedesk, the actual amount needs to match the invoice amount.
If this order is above 500 euroa Request for Quotation needs to be completed. You can apply for an RFQ at the AAFM Servicedesk.
</span>
				</td>
			</tr>
		</table>
	</xsl:template>


	<xsl:template name="voorwaarden">
		<xsl:param name="opdr_type"/>
		<table border="1" width="100%" bordercolor="#000000">
			<tr>
				<td>
					<span style="font-size:9">
					 On all requests for quotation and orders supplied by AAFM Facility Management BV,
					 solely and fully the “General Purchase Conditions, version of January 1st, 2010 AAFM Facility Management BV”, 
					 with the exception of written contractual agreements with AAFM Facility Management BV.
					 These conditions can be obtained directly through the following link
							<a href="http://www.aa-fm.com">http://www.aa-fm.com</a>(under "afdeling Inkoop").<br/>
						<xsl:if test="$opdr_type='RFQ'">

							<br/>By signing this form by the Supplier he declares to agree with the above mentioned and applicable purchase conditions, with the exception of written contractual agreements with
							AAFM Facility Management BV.</xsl:if>
					</span>
						<br/>
						<table border="0" width="100%">
						<tr><td style="text-align:center">
						<span style="font-size:9; font-weight:bold">Chamber of Commerce number 09130306</span>
						</td></tr>
						</table>
				</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="offertetekst">
	<xsl:param name="opdr_type"/>
		<table border="0" width="100%" bordercolor="#000000">
			<tr>
				<td>
					<span style="font-size:9">AAFM Facility Management BV<br/><br/>

1. AAFM Facility Management BV would kindly like to request you to provide a
Request for Quotation for the below mentioned scope of work.<br/><br/>

2. The Request for Quotation needs to be a fixed price based on the requested scope of work
as described in this document, the (contractual) agreements between
AAFM and the supplier as well remarks and discussions provided by the supplier.
If, due to circumstances, the supplier cannot provide a fixed price the most accurate
estimation possible needs to be provided.<br/>
If such is the case the supplier needs to mention this in this RFQ.<br/><br/>

3. If the Request for Quotation exceeds the amount of € 500,-. A detailed
specification of associated costs needs to be provided along with this RFQ.<br/><br/>

4. The Request for Quotation (incl. cost specification)
needs to be signed by the supplier and returned to the AAFM Servicedesk.</span>
				</td>
			</tr>
		</table>
	</xsl:template>


	<xsl:template match="bestelopdracht" mode="full">
		<xsl:choose>
			<xsl:when test="$mode='summary'"></xsl:when>
			<xsl:otherwise>
				<html>
					<xsl:comment>================================ OPDRACHTEN ==============================</xsl:comment>
					<xsl:comment>Facilitor new style default XSL template for opdracht</xsl:comment>
					<xsl:call-template name="htmlhead"/>
					<xsl:element name="body">
						<xsl:if test="$mode!='email'">
							<xsl:attribute name="onload">window.print();</xsl:attribute>
						</xsl:if>
						<xsl:call-template name="pageheader_opdr">
							<xsl:with-param name="opdr_type" select="'PurchaseOrder'"/>
							<xsl:with-param name="opdr_nummer" select="id"/>
						</xsl:call-template>
							<table border="0" width="100%">
								<tr>
									<td width="50%">
										<span class="tekstkop">&#xA0;Price condition:&#xA0;</span>VAT. Exclusive</td>
									<td width="50%">
										<span class="tekstkop">&#xA0;Payment conditions:&#xA0;</span>
												60 days month end
									</td>
								</tr>
							</table>
							<table border="1" width="100%" bordercolor="#000000">
								<tr>
									<td width="50%" height="100%" rowspan="4" style="border-left-style:none">
										<table border="0" height="100%">
											<tr>
												<td height="50%">
													<xsl:apply-templates select="bedrijf"/>
												</td>
											</tr>
											<tr>
												<td height="50%">
													<xsl:apply-templates select="afleveradres"/>
												</td>
											</tr>

										</table>
									</td>
									<td width="50%" style="border-right-style:none">
										<xsl:call-template name="servicedesk"/>
										  <xsl:if test="opdrachttype/omschrijving!='Contractorder' ">
										    <xsl:call-template name="gereedmelden"/>
										  </xsl:if>
									</td>
								</tr>
								<tr>
									<td style="border-right-style:none">
										<xsl:call-template name="factuuradres">
										<xsl:with-param name="opdr_type" select="opdrachttype/omschrijving"/>
										</xsl:call-template>
									</td>
								</tr>
								<tr>
									<td style="border-right-style:none">
										<table border="0" width="100%" cellspacing="0">
											<tr>
												<td>
													<span class="tekstkopsmall">Shipping days:</span>
												</td>
												<td>
													<xsl:value-of select="bestelopdrachtitem/bestelitem/srtdeel/srtgroep/discipline/bes/leverdagen"/>work day(s)</td>
											</tr>
											<tr>
												<td>
													<span class="tekstkopsmall">Date issued:</span>
												</td>
												<td>
													<xsl:value-of select="bestelling/datum/datum"/>
												</td>
											</tr>
											<tr>
												<td>
													<span class="tekstkopsmall">Issued by:</span>
												</td>
												<td>
													<xsl:value-of select="besteller/naam_full"/>
												</td>
											</tr>
											<tr>
												<td>
													<span class="tekstkopsmall">Order number:</span>
												</td>
												<td>
													LB <xsl:value-of select="id"/>
												</td>
											</tr>
											<tr>
												<td>
													<span class="tekstkopsmall">Requestor:</span>
												</td>
												<td>
													<xsl:value-of select="bestelling/aanvrager/naam_full"/>
												</td>
											</tr>
											<tr>
												<td>
													<span class="tekstkopsmall">Phone number:</span>
												</td>
												<td>
													<xsl:value-of select="bestelling/aanvrager/telefoonnr"/>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
							<table border="0" height="300">

						<TR>
							<TD colspan="5">
								<TABLE cellpadding="0" cellspacing="0" border="1" bordercolor="#303030" width="100%">
									<tr>
										<th>Line</th>
										<th>Item no.</th>
										<th>Description</th>
										<th>Unit</th>
										<th style="text-align:right">Count</th>
										<xsl:if test="aantal_geleverd &gt; 0">
											<th style="text-align:right">Delivered</th>
										</xsl:if>
										<th style="text-align:right">Price</th>
										<th style="text-align:right">Sum</th>
									</tr>
									<xsl:for-each select="bestelopdrachtitem">
										<xsl:sort select="srtdeel/omschrijving"/>
										<xsl:sort select="posnr" data-type="number"/>
										<tr>
											<td class="result">
												<xsl:value-of select="posnr"/>
											</td>
											<td class="result">
												<xsl:value-of select="bestelitem/srtdeel/artikel_nummer"/>
											</td>
											<td class="result">
												<xsl:value-of select="bestelitem/srtdeel/omschrijving"/>&#xA0;
												<xsl:for-each select="bestelitem/kenmerk">
												<xsl:if test="(@type!='L' and @type!='l')">
													<br/>
													<xsl:value-of select="@naam"/>: <xsl:value-of select="."/>
												</xsl:if>	
												</xsl:for-each>
											</td>
											<td class="result">
												<xsl:value-of select="bestelitem/srtdeel/eenheid"/>
											</td>
											<td class="result" style="text-align:right">
												<xsl:value-of select="aantal"/>
											</td>
											<xsl:if test="../aantal_geleverd &gt; 0">
												<td class="result" style="text-align:right">
													<xsl:value-of select="aantalontv"/>
												</td>
											</xsl:if>
											<td class="result" style="text-align:right">
												<xsl:value-of select="format-number(prijs, '0,00', 'european')"/>
											</td>
											<td class="result" style="text-align:right">
												<xsl:value-of select="format-number(totaal, '0,00', 'european')"/>
											</td>
										</tr>
									</xsl:for-each>
									<tr>
										<td colspan="6"/>
										<xsl:if test="aantal_geleverd &gt; 0">
											<td/>
										</xsl:if>
										<td style="text-align:right">
											<b>
												<xsl:value-of select="format-number(sum(bestelopdrachtitem/totaal), '0,00', 'european')"/>
											</b>
										</td>
									</tr>
								</TABLE>
								</TD>
								</TR>
<xsl:if test="bestelling/kenmerk">
<tr>
							<td colspan="5" style="height:20"/>
														<td colspan="2" style="vertical-align:top">
								<xsl:for-each select="bestelling/kenmerk">
								<xsl:if test="(@type!='L' and @type!='l')">
									<b>
										<xsl:value-of select="@naam"/>:</b>
									<xsl:value-of select="."/>
									<br/>
								</xsl:if>	
								</xsl:for-each>&#xA0;</td>
						</tr>
</xsl:if>


								</table>
	
							<table border="0" width="100%" bordercolor="#000000">
								<tr>
									<td>
										<xsl:call-template name="voorwaarden">
										<xsl:with-param name="opdr_type" select="opdrachttype/omschrijving"/>
										</xsl:call-template>
									</td>
								</tr>
							</table>
						<xsl:call-template name="pagefooter"/>
					</xsl:element>
				</html>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>


	<xsl:template match="perslid" mode="full">
       <xsl:choose>
            <xsl:when test="$mode='summary'"></xsl:when>
       <xsl:otherwise>
		<html>
			<xsl:comment>================================ PERSONEN ==============================</xsl:comment>
			<xsl:comment>Facilitor new style default XSL template for perslid</xsl:comment>
			<xsl:call-template name="htmlhead"/>
				<xsl:apply-templates select="." mode="include"/>
		</html>
       </xsl:otherwise>
      </xsl:choose>
	</xsl:template>


</xsl:stylesheet>
<!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. -->