WZUV#41726 Implementatie fase 2
svn path=/Website/branches/v2017.2/; revision=36065
This commit is contained in:
84
CUST/WZUV/xsl/TU.xsl
Normal file
84
CUST/WZUV/xsl/TU.xsl
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
|
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
|
||||||
|
|
||||||
|
<xsl:decimal-format name="european" decimal-separator="." grouping-separator=","/>
|
||||||
|
|
||||||
|
<xsl:param name="mode"/>
|
||||||
|
|
||||||
|
<xsl:template match="bestelopdracht">
|
||||||
|
|
||||||
|
<Order xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<!--Type 220 wil zeggen: order -->
|
||||||
|
<OrderType>220</OrderType>
|
||||||
|
<OrderNumber><xsl:value-of select="id"/></OrderNumber>
|
||||||
|
<OrderDate><xsl:value-of select="datum/jaar"/>-<xsl:value-of select="datum/maand"/>-<xsl:value-of select="datum/dag"/></OrderDate>
|
||||||
|
<OrderTime><xsl:value-of select="datum/tijd"/>:00</OrderTime>
|
||||||
|
<!-- Scenariotype X1 is deelleveringen niet toestaan, X2 is deelleveringen wel toestaan -->
|
||||||
|
<ScenarioTypeCode>X2</ScenarioTypeCode>
|
||||||
|
<!-- komt misschien nog van pas: vrije tekst per order -->
|
||||||
|
<FreeText>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</FreeText>
|
||||||
|
<DeliveryDateTimeInformation>
|
||||||
|
<RequiredDeliveryDate><xsl:value-of select="bestelling/leverdatum/jaar"/>-<xsl:value-of select="bestelling/leverdatum/maand"/>-<xsl:value-of select="bestelling/leverdatum/dag"/></RequiredDeliveryDate>
|
||||||
|
</DeliveryDateTimeInformation>
|
||||||
|
<Buyer>
|
||||||
|
<GLN> </GLN>
|
||||||
|
<Name>WZU Veluwe</Name>
|
||||||
|
<ContactInformation>
|
||||||
|
<ContactPersonName><xsl:value-of select="bestelling/aanvrager/naam_full"/></ContactPersonName>
|
||||||
|
</ContactInformation>
|
||||||
|
</Buyer>
|
||||||
|
<Supplier>
|
||||||
|
<GLN><xsl:value-of select="bedrijf/kenmerk[@naam='GLN']"/></GLN>
|
||||||
|
</Supplier>
|
||||||
|
<DeliveryParty>
|
||||||
|
<StreetAndNumber><xsl:value-of select="bestelling/afleveradres/bezoek_adres"/></StreetAndNumber>
|
||||||
|
<City><xsl:value-of select="bestelling/afleveradres/bezoek_plaats"/></City>
|
||||||
|
<PostalCode><xsl:value-of select="bestelling/afleveradres/bezoek_postcode"/></PostalCode>
|
||||||
|
<Country><xsl:value-of select="bestelling/afleveradres/bezoek_land"/></Country>
|
||||||
|
<LocationDescription><xsl:value-of select="bestelling/afleveradres/naam"/></LocationDescription>
|
||||||
|
</DeliveryParty>
|
||||||
|
<xsl:for-each select="bestelopdrachtitem">
|
||||||
|
<OrderLine>
|
||||||
|
<LineNumber><xsl:value-of select="posnr"/></LineNumber>
|
||||||
|
<OrderedQuantity><xsl:value-of select="aantal"/></OrderedQuantity>
|
||||||
|
<!-- TU geeft een eenheid van C62, dat is niet conform ketenstandaard -->
|
||||||
|
<OrderedQuantityMeasureUnitCode><xsl:value-of select="bestelitem/strdeel/eenheid"/></OrderedQuantityMeasureUnitCode>
|
||||||
|
<LineIdentitfication><xsl:value-of select="posnr"/></LineIdentitfication>
|
||||||
|
<TradeItemIdentification>
|
||||||
|
<SuppliersTradeItemIdentification><xsl:value-of select="bestelitem/srtdeel/artikel_nummer"/></SuppliersTradeItemIdentification>
|
||||||
|
<AdditionalItemIdentification>
|
||||||
|
<TradeItemDescription><xsl:value-of select="omschrijving"/></TradeItemDescription>
|
||||||
|
</AdditionalItemIdentification>
|
||||||
|
</TradeItemIdentification>
|
||||||
|
<!--- vrije tekst per orderregel...komt misschien nog van pas -->
|
||||||
|
<FreeText>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</FreeText>
|
||||||
|
</OrderLine>
|
||||||
|
</xsl:for-each>
|
||||||
|
</Order>
|
||||||
|
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template match="facilitor">
|
||||||
|
<xsl:apply-templates select="bestelopdracht"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="/">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="$mode='getExtension'">
|
||||||
|
<xsl:element name="format">
|
||||||
|
<xsl:element name="extension">xml</xsl:element>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:apply-templates select="facilitor"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
||||||
|
<!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
|
||||||
|
<metaInformation>
|
||||||
|
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="file:///y:/Klantspecifiek/WZUV/9. Inkoop en inkoopfacturen/TU/Proef order TU.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="" ><advancedProp name="sInitialMode" value=""/><advancedProp name="bXsltOneIsOkay" value="true"/><advancedProp name="bSchemaAware" value="true"/><advancedProp name="bXml11" value="false"/><advancedProp name="iValidation" value="0"/><advancedProp name="bExtensions" value="true"/><advancedProp name="iWhitespace" value="0"/><advancedProp name="sInitialTemplate" value=""/><advancedProp name="bTinyTree" value="true"/><advancedProp name="bWarnings" value="true"/><advancedProp name="bUseDTD" value="false"/><advancedProp name="iErrorHandling" value="fatal"/></scenario></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
|
||||||
|
</metaInformation>
|
||||||
|
-->
|
||||||
Reference in New Issue
Block a user