Hjelp
Jens Glad Balchen
Logg ut
Bytt passord
Innstillinger
Timeliste
Legg til engangsbeløp
Reiseregning
Administrasjon
Fakturaliste
Fakturér
Kunder
Reiseregninger
Merverdiavgift
Rapporter
Timerapport
Årlig fakturarapport
System
Maler
Filer
Salg
Ordre
Produkter
Innkjøp
Lagerstyring
Varelager
Salgsrapport
Vareforbruksrapport
Kassarapport
Innstillinger
Navn
Dokumenttype
Prosessor
XslFoToPdf
Xslt
Neste mal
Ingen
Saint Etienne - faktura PDF
Energibarrer.no - faktura HTML
Saint Etienne - purring
Energibarrer.no - purring
Energibarrer.no - kreditnota
XSL-FO til PDF
Energibarrer.no - ordrebekreftelse tekst
Energibarrer.no - ordrebekreftelse HTML
Angreskjema
Energibarrer.no - leveringsbekreftelse tekst
Energibarrer.no - leveringsbekreftelse HTML
Energibarrer.no - faktura PDF
Energibarrer.no - fraktetikett
Energibarrer.no - ordrekvittering HTML
Tittel
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" version="4.0" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" omit-xml-declaration="yes" indent="no"/> <xsl:template match="order">Ordre <xsl:value-of select="./@number"/> på Energibarrer.no</xsl:template> </xsl:stylesheet>
Innhold
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" version="4.0" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" omit-xml-declaration="yes" indent="no"/> <xsl:template match="order"> Energibarrer.no Ordrekvittering Din ordre med nummer <xsl:value-of select="./@number"/> har blitt mottatt og registrert hos oss, og vil bli behandlet så snart som mulig. <xsl:if test="boolean(./estimatedDelivery)">Forventet sending av din ordre er <xsl:value-of select="./estimatedDelivery"/></xsl:if><xsl:if test="boolean(./shipping/details/deliveryDate)"> og forventet ankomst hos deg er <xsl:value-of select="./shipping/details/deliveryDate"/></xsl:if>. Når varene dine har blitt plukket, vil du få en ny epost med ordrebekreftelse. Ved feil eller endringer på ordren din, ta kontakt så snart som mulig ved å sende epost til post@energibarrer.no eller ringe/sende SMS til <xsl:value-of select="./company/phone"/>. Leveringsadresse --------------------- <xsl:apply-templates select="./customer/formattedAddress/text()"/> Produkt Antall Enhetspris<xsl:if test="./items/item/discountWithoutVat"> Rabatt</xsl:if> Sum --------------------------------------------------------<xsl:if test="./items/item/discountWithoutVat">--------</xsl:if>-----------<xsl:text> </xsl:text> <xsl:apply-templates select="./items/item"> <xsl:sort order="ascending" select="./product/name"/> </xsl:apply-templates> <xsl:apply-templates select="./shipping"/> <xsl:text> </xsl:text> --------------------------------------------------------<xsl:if test="./items/item/discountWithoutVat">--------</xsl:if>----------- <xsl:call-template name="append-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="''"/> <xsl:with-param name="length" select="48"/> </xsl:call-template> <xsl:if test="//items/item/discountWithVat"> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="''"/> <xsl:with-param name="length" select="8"/> </xsl:call-template> </xsl:if> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="'Totalt'"/> <xsl:with-param name="length" select="8"/> </xsl:call-template> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="./amountWithVat"/> <xsl:with-param name="length" select="11"/> </xsl:call-template> ========================================================<xsl:if test="./items/item/discountWithoutVat">========</xsl:if>===========<xsl:text> </xsl:text> <xsl:apply-templates select="./company/formattedAddress/text()"/> Bankkonto: <xsl:value-of select="./company/bankAccountNumber"/> Foretaksnr: <xsl:value-of select="./company/registrationNumber"/> E-post: post@energibarrer.no Telefon <xsl:value-of select="./company/phone"/><xsl:text> </xsl:text> </xsl:template> <xsl:template match="shipping"> <xsl:text> </xsl:text> <xsl:call-template name="append-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="'Frakt'"/> <xsl:with-param name="length" select="36"/> </xsl:call-template> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="''"/> <xsl:with-param name="length" select="8"/> </xsl:call-template> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="''"/> <xsl:with-param name="length" select="12"/> </xsl:call-template> <xsl:if test="//items/item/discountWithVat"> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="''"/> <xsl:with-param name="length" select="8"/> </xsl:call-template> </xsl:if> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="./totalWithVat"/> <xsl:with-param name="length" select="11"/> </xsl:call-template> <xsl:text> </xsl:text> <xsl:value-of select="./details/shipper"/><xsl:text> </xsl:text> <xsl:value-of select="./product/name"/><xsl:text> </xsl:text> <xsl:choose> <xsl:when test="./details/canTrack[text() = 'false']">Denne forsendelsen kan ikke spores</xsl:when> <xsl:otherwise>Forsendelsen har sporingsnummer <xsl:value-of select="./details/shipmentNumber"/></xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="item"> <xsl:call-template name="append-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="./product/name/text()"/> <xsl:with-param name="length" select="36"/> </xsl:call-template> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="concat(./units, ' ', ./product/uom)"/> <xsl:with-param name="length" select="8"/> </xsl:call-template> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="./rateWithVat"/> <xsl:with-param name="length" select="12"/> </xsl:call-template> <xsl:if test="//items/item/discountWithVat"> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="./totalDiscountWithVat"/> <xsl:with-param name="length" select="8"/> </xsl:call-template> </xsl:if> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="' '"/> <xsl:with-param name="padVar" select="./totalWithVat"/> <xsl:with-param name="length" select="11"/> </xsl:call-template> <!-- <div class="stock"> <xsl:value-of select="./stock/@unitsReservedInStock"/> reservert på lager </div> --> <xsl:text> </xsl:text> </xsl:template> <xsl:template name="prepend-pad"> <!-- recursive template to right justify and prepend--> <!-- the value with whatever padChar is passed in --> <xsl:param name="padChar"> </xsl:param> <xsl:param name="padVar"/> <xsl:param name="length"/> <xsl:choose> <xsl:when test="string-length($padVar) < $length"> <xsl:call-template name="prepend-pad"> <xsl:with-param name="padChar" select="$padChar"/> <xsl:with-param name="padVar" select="concat($padChar,$padVar)"/> <xsl:with-param name="length" select="$length"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring($padVar,string-length($padVar) - $length + 1)"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="append-pad"> <!-- recursive template to left justify and append --> <!-- the value with whatever padChar is passed in --> <xsl:param name="padChar"> </xsl:param> <xsl:param name="padVar"/> <xsl:param name="length"/> <xsl:choose> <xsl:when test="string-length($padVar) < $length"> <xsl:call-template name="append-pad"> <xsl:with-param name="padChar" select="$padChar"/> <xsl:with-param name="padVar" select="concat($padVar,$padChar)"/> <xsl:with-param name="length" select="$length"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring($padVar,1,$length)"/> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
CreditNoteXmlProvider
CustomsDeclarationXmlProvider
InvoiceXmlProvider
ReminderXmlProvider
SalesOrderXmlProvider