cargosoft report
This commit is contained in:
parent
550323b72f
commit
c0073dadd7
2 changed files with 646 additions and 0 deletions
415
reports/cargosoft/cargosoft-1.0.0-usa.imixs-report
Normal file
415
reports/cargosoft/cargosoft-1.0.0-usa.imixs-report
Normal file
|
|
@ -0,0 +1,415 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<document xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<item name="$created">
|
||||
<value xsi:type="xs:dateTime">2024-02-02T13:13:38.991+01:00</value>
|
||||
</item>
|
||||
<item name="$file">
|
||||
<value xsi:nil="true" />
|
||||
</item>
|
||||
<item name="$isauthor">
|
||||
<value xsi:type="xs:boolean">true</value>
|
||||
</item>
|
||||
<item name="$modified">
|
||||
<value xsi:type="xs:dateTime">2024-10-23T16:22:56.820+02:00</value>
|
||||
</item>
|
||||
<item name="$snapshot.overwritefilecontent">
|
||||
<value xsi:type="xs:string"></value>
|
||||
</item>
|
||||
<item name="$snapshotid">
|
||||
<value xsi:type="xs:string">806f9b2f-07ff-43d1-9b0d-1038804cc71c-1729693376824</value>
|
||||
</item>
|
||||
<item name="$uniqueid">
|
||||
<value xsi:type="xs:string">806f9b2f-07ff-43d1-9b0d-1038804cc71c</value>
|
||||
</item>
|
||||
<item name="$version">
|
||||
<value xsi:type="xs:int">2</value>
|
||||
</item>
|
||||
<item name="attributes">
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">$uniqueid</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">$workflowgroup</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">$taskid</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">$workflowsummary</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">invoice.number</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">invoice.date</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">invoice.total</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">invoice.currency</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">cdtr.name</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">cdtr.iban</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">cdtr.bic</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">dbtr.name</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">dbtr.iban</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">dbtr.bic</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">payment.type</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
<value xsi:type="xmlItem">
|
||||
<value xsi:type="xs:string">invoice.servicedate</value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
<value xsi:type="xs:string"></value>
|
||||
</value>
|
||||
</item>
|
||||
<item name="contenttype">
|
||||
<value xsi:type="xs:string"></value>
|
||||
</item>
|
||||
<item name="encoding">
|
||||
<value xsi:type="xs:string">UTF-8</value>
|
||||
</item>
|
||||
<item name="txtdescription">
|
||||
<value xsi:type="xs:string">Cargosoft Export - only the XSL Template is needed here!</value>
|
||||
</item>
|
||||
<item name="txtname">
|
||||
<value xsi:type="xs:string">cargosoft</value>
|
||||
</item>
|
||||
<item name="txtquery">
|
||||
<value xsi:type="xs:string"></value>
|
||||
</item>
|
||||
<item name="type">
|
||||
<value xsi:type="xs:string">ReportEntity</value>
|
||||
</item>
|
||||
<item name="xsl">
|
||||
<value xsi:type="xs:string"><?xml version="1.0" encoding="UTF-8"
|
||||
standalone="yes"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
version="2.0">
|
||||
<xsl:strip-space elements="*" />
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8"
|
||||
standalone="yes" />
|
||||
|
||||
<xsl:template match="/">
|
||||
|
||||
<xsl:variable name="date"
|
||||
select="/data/document/item[@name='$modified']/value" />
|
||||
|
||||
<Invoices version="2020.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<Message>
|
||||
<SenderID>Imixs-Office-Workflow</SenderID>
|
||||
<ReceiverID>Cargosoft</ReceiverID>
|
||||
<MessageID>
|
||||
<xsl:value-of select="/data/document/item[@name='$uniqueid']/value"
|
||||
/>
|
||||
</MessageID>
|
||||
<MessageDate>
|
||||
<DateTime>
|
||||
<xsl:value-of select="$date" />
|
||||
</DateTime>
|
||||
</MessageDate>
|
||||
</Message>
|
||||
|
||||
<xsl:apply-templates
|
||||
select="/data/document[normalize-space(item[@name = '$workflowgroup']/value) =
|
||||
'Cargosoft-Export']" />
|
||||
</Invoices>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- This template builds invoice info -->
|
||||
<xsl:template
|
||||
match="/data/document[normalize-space(item[@name = '$workflowgroup']/value) =
|
||||
'Cargosoft-Export']">
|
||||
|
||||
<xsl:variable name="date" select="item[@name='$modified']/value" />
|
||||
<xsl:variable
|
||||
name="currency" select="item[@name='invoice.currency']/value" />
|
||||
|
||||
|
||||
<Invoice>
|
||||
<InvoiceHeader>
|
||||
<Client>
|
||||
<Codes>
|
||||
<!-- Als Typ muss „cs“ übermittelt werden und im Code wird
|
||||
dann der Cargosoft Mandant erwartet. -->
|
||||
<Code Type="cs">004</Code>
|
||||
</Codes>
|
||||
</Client>
|
||||
<!-- Hier muss eine eindeutige Belegnummer für jeden einzelnen
|
||||
Beleg übermittelt werden. Es muss sich um eine Nummer
|
||||
handeln, die pro Beleg hochgezählt wird und darf sich nicht
|
||||
überschneiden mit dem CargoSoft Belegnummernkreis.
|
||||
Daher den Nummernkreis vorher mit CargoSoft absprechen. -->
|
||||
<InvoiceNumber>
|
||||
<xsl:value-of select="item[@name='numsequencenumber']/value"
|
||||
/>
|
||||
</InvoiceNumber>
|
||||
|
||||
<!-- Belegart - bei Gutschriften 'CREDIT' andernfalls 'INVOICE -->
|
||||
<InvoiceType>
|
||||
<Codes>
|
||||
<xsl:choose>
|
||||
<xsl:when test="item[@name='payment.type']/value = 'credit'">
|
||||
<Code Type="cs">CREDIT</Code>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<Code Type="cs">INVOICE</Code>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</Codes>
|
||||
</InvoiceType>
|
||||
<InvoiceCurrency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</InvoiceCurrency>
|
||||
<InvoiceAmount>
|
||||
<NetAmount>
|
||||
<Amount>
|
||||
<Currency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</Currency>
|
||||
<Value>
|
||||
<xsl:value-of select="item[@name='order.total.netto']/value"
|
||||
/>
|
||||
</Value>
|
||||
<!-- exchange rate nur ausgeben wenn vorhanden -->
|
||||
<xsl:if
|
||||
test="string-length(item[@name='invoice.exchangerate']/value) >0">
|
||||
<ExchangeRate>
|
||||
<xsl:value-of select="item[@name='invoice.exchangerate']/value"
|
||||
/>
|
||||
</ExchangeRate>
|
||||
</xsl:if>
|
||||
</Amount>
|
||||
</NetAmount>
|
||||
<VATInformation>
|
||||
<VATAmount>
|
||||
<Amount>
|
||||
<Currency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</Currency>
|
||||
<Value>
|
||||
<xsl:value-of select="item[@name='order.total.tax']/value"
|
||||
/>
|
||||
</Value>
|
||||
<!-- exchange rate nur ausgeben wenn vorhanden -->
|
||||
<xsl:if
|
||||
test="string-length(item[@name='invoice.exchangerate']/value) >
|
||||
0">
|
||||
<ExchangeRate>
|
||||
<xsl:value-of
|
||||
select="item[@name='invoice.exchangerate']/value"
|
||||
/>
|
||||
</ExchangeRate>
|
||||
</xsl:if>
|
||||
</Amount>
|
||||
</VATAmount>
|
||||
</VATInformation>
|
||||
</InvoiceAmount>
|
||||
<CollectionInvoice>false</CollectionInvoice>
|
||||
<xsl:if test="string-length(item[@name='invoice.period']/value) > 0">
|
||||
<BookingPeriod>
|
||||
<xsl:value-of select="item[@name='invoice.period']/value"
|
||||
/>
|
||||
</BookingPeriod>
|
||||
</xsl:if>
|
||||
<Booked>false</Booked>
|
||||
<InvoiceDate>
|
||||
<xsl:value-of select="item[@name='invoice.date']/value"
|
||||
/>
|
||||
</InvoiceDate>
|
||||
|
||||
|
||||
<InvoiceAddress type="CN">
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="item[@name='cdtr.number']/value"
|
||||
/>
|
||||
</Code>
|
||||
</Codes>
|
||||
</InvoiceAddress>
|
||||
|
||||
<References>
|
||||
<Reference type="cs">
|
||||
<xsl:value-of select="item[@name='invoice.number']/value"
|
||||
/>
|
||||
</Reference>
|
||||
</References>
|
||||
|
||||
<!-- Attachements -->
|
||||
<xsl:if test="item[@name='$file.count']/value > 0">
|
||||
<Attachments>
|
||||
<xsl:for-each
|
||||
select="item[@name='$file']/value/item">
|
||||
<Attachment>
|
||||
<xsl:attribute name="id"><xsl:value-of
|
||||
select="./value/item[@name='md5checksum']/value" /></xsl:attribute>
|
||||
<xsl:attribute name="version">1</xsl:attribute>
|
||||
<Filename>
|
||||
<xsl:value-of select="lower-case(./@name)"
|
||||
/>
|
||||
</Filename>
|
||||
<Description>Imixs-Office-Workflow</Description>
|
||||
<Content>
|
||||
<xsl:value-of select="./value[2]" />
|
||||
</Content>
|
||||
</Attachment>
|
||||
</xsl:for-each>
|
||||
</Attachments>
|
||||
</xsl:if>
|
||||
|
||||
</InvoiceHeader>
|
||||
<InvoiceRows>
|
||||
|
||||
<xsl:for-each
|
||||
select="item[@name='_childitems']/value">
|
||||
<InvoiceRow>
|
||||
<Row>
|
||||
<xsl:value-of select="./item[@name='numpos']/value" />
|
||||
</Row>
|
||||
<FileNumber>
|
||||
<xsl:value-of select="./item[@name='name']/value"
|
||||
/>
|
||||
</FileNumber>
|
||||
<InvoiceAmount>
|
||||
<NetAmount>
|
||||
<Amount>
|
||||
<Currency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</Currency>
|
||||
<Value>
|
||||
<xsl:value-of select="./item[@name='amount']/value"
|
||||
/>
|
||||
</Value>
|
||||
</Amount>
|
||||
</NetAmount>
|
||||
<VATInformation>
|
||||
<VAT>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="./item[@name='tax']/value"
|
||||
/>
|
||||
</Code>
|
||||
</Codes>
|
||||
</VAT>
|
||||
</VATInformation>
|
||||
</InvoiceAmount>
|
||||
<ActivityType>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="./item[@name='category']/value"
|
||||
/>
|
||||
</Code>
|
||||
</Codes>
|
||||
</ActivityType>
|
||||
</InvoiceRow>
|
||||
</xsl:for-each>
|
||||
</InvoiceRows>
|
||||
</Invoice>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet></value>
|
||||
</item>
|
||||
<item name="xslresource">
|
||||
<value xsi:type="xs:string">
|
||||
/office-alexander-logistics/reports/cargosoft/cargosoft-1.0.6.xsl</value>
|
||||
</item>
|
||||
</document>
|
||||
231
reports/cargosoft/cargosoft-1.0.0-usa.xsl
Normal file
231
reports/cargosoft/cargosoft-1.0.0-usa.xsl
Normal file
|
|
@ -0,0 +1,231 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
version="2.0">
|
||||
<xsl:strip-space elements="*" />
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8"
|
||||
standalone="yes" />
|
||||
|
||||
<xsl:template match="/">
|
||||
|
||||
<xsl:variable name="date"
|
||||
select="/data/document/item[@name='$modified']/value" />
|
||||
<Invoices version="2020.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<Message>
|
||||
<SenderID>Imixs-Office-Workflow</SenderID>
|
||||
<ReceiverID>Cargosoft</ReceiverID>
|
||||
<MessageID>
|
||||
<xsl:value-of select="/data/document/item[@name='$uniqueid']/value" />
|
||||
</MessageID>
|
||||
<MessageDate>
|
||||
<DateTime>
|
||||
<xsl:value-of select="$date" />
|
||||
</DateTime>
|
||||
</MessageDate>
|
||||
</Message>
|
||||
|
||||
<xsl:apply-templates
|
||||
select="/data/document[normalize-space(item[@name = '$workflowgroup']/value) =
|
||||
'Cargosoft-Export']" />
|
||||
</Invoices>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<!-- This template builds invoice info -->
|
||||
<xsl:template
|
||||
match="/data/document[normalize-space(item[@name = '$workflowgroup']/value) =
|
||||
'Cargosoft-Export']">
|
||||
|
||||
<xsl:variable name="date" select="item[@name='$modified']/value" />
|
||||
<xsl:variable
|
||||
name="currency" select="item[@name='invoice.currency']/value" />
|
||||
|
||||
<Invoice>
|
||||
<InvoiceHeader>
|
||||
<Client>
|
||||
<Codes>
|
||||
<!-- Als Typ muss „cs“ übermittelt werden und im Code wird
|
||||
dann der Cargosoft Mandant erwartet. -->
|
||||
<Code Type="cs">004</Code>
|
||||
</Codes>
|
||||
</Client>
|
||||
<!-- Hier muss eine eindeutige Belegnummer für jeden einzelnen
|
||||
Beleg übermittelt werden. Es muss sich um eine Nummer
|
||||
handeln, die pro Beleg hochgezählt wird und darf sich nicht
|
||||
überschneiden mit dem CargoSoft Belegnummernkreis.
|
||||
Daher den Nummernkreis vorher mit CargoSoft absprechen. -->
|
||||
<InvoiceNumber>
|
||||
<xsl:value-of select="item[@name='numsequencenumber']/value" />
|
||||
</InvoiceNumber>
|
||||
|
||||
<!-- Belegart - bei Gutschriften 'CREDIT' andernfalls 'INVOICE -->
|
||||
<InvoiceType>
|
||||
<Codes>
|
||||
<xsl:choose>
|
||||
<xsl:when test="item[@name='payment.type']/value = 'credit'">
|
||||
<Code Type="cs">CREDIT</Code>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<Code Type="cs">INVOICE</Code>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</Codes>
|
||||
</InvoiceType>
|
||||
<InvoiceCurrency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</InvoiceCurrency>
|
||||
<InvoiceAmount>
|
||||
<NetAmount>
|
||||
<Amount>
|
||||
<Currency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</Currency>
|
||||
<Value>
|
||||
<xsl:value-of select="item[@name='order.total.netto']/value"
|
||||
/>
|
||||
</Value>
|
||||
<!-- exchange rate nur ausgeben wenn vorhanden -->
|
||||
<xsl:if
|
||||
test="string-length(item[@name='invoice.exchangerate']/value) >0">
|
||||
<ExchangeRate>
|
||||
<xsl:value-of select="item[@name='invoice.exchangerate']/value" />
|
||||
</ExchangeRate>
|
||||
</xsl:if>
|
||||
</Amount>
|
||||
</NetAmount>
|
||||
<VATInformation>
|
||||
<VATAmount>
|
||||
<Amount>
|
||||
<Currency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</Currency>
|
||||
<Value>
|
||||
<xsl:value-of select="item[@name='order.total.tax']/value" />
|
||||
</Value>
|
||||
<!-- exchange rate nur ausgeben wenn vorhanden -->
|
||||
<xsl:if
|
||||
test="string-length(item[@name='invoice.exchangerate']/value) >0">
|
||||
<ExchangeRate>
|
||||
<xsl:value-of
|
||||
select="item[@name='invoice.exchangerate']/value" />
|
||||
</ExchangeRate>
|
||||
</xsl:if>
|
||||
</Amount>
|
||||
</VATAmount>
|
||||
</VATInformation>
|
||||
</InvoiceAmount>
|
||||
<CollectionInvoice>false</CollectionInvoice>
|
||||
<xsl:if test="string-length(item[@name='invoice.period']/value) > 0">
|
||||
<BookingPeriod>
|
||||
<xsl:value-of select="item[@name='invoice.period']/value" />
|
||||
</BookingPeriod>
|
||||
</xsl:if>
|
||||
<Booked>false</Booked>
|
||||
<InvoiceDate>
|
||||
<xsl:value-of select="item[@name='invoice.date']/value" />
|
||||
</InvoiceDate>
|
||||
|
||||
<InvoiceAddress type="CN">
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="item[@name='cdtr.number']/value" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</InvoiceAddress>
|
||||
|
||||
<References>
|
||||
<Reference type="cs">
|
||||
<xsl:value-of select="item[@name='invoice.number']/value" />
|
||||
</Reference>
|
||||
</References>
|
||||
|
||||
<!-- Attachements -->
|
||||
<xsl:if test="item[@name='$file.count']/value > 0">
|
||||
<Attachments>
|
||||
<xsl:for-each
|
||||
select="item[@name='$file']/value/item">
|
||||
<Attachment>
|
||||
<xsl:attribute name="id"><xsl:value-of
|
||||
select="./value/item[@name='md5checksum']/value" /></xsl:attribute>
|
||||
<xsl:attribute name="version">1</xsl:attribute>
|
||||
<Filename>
|
||||
<xsl:value-of select="lower-case(./@name)" />
|
||||
</Filename>
|
||||
<Description>Imixs-Office-Workflow</Description>
|
||||
<Content>
|
||||
<xsl:value-of select="./value[2]" />
|
||||
</Content>
|
||||
</Attachment>
|
||||
</xsl:for-each>
|
||||
</Attachments>
|
||||
</xsl:if>
|
||||
|
||||
</InvoiceHeader>
|
||||
<InvoiceRows>
|
||||
|
||||
<xsl:for-each
|
||||
select="item[@name='_childitems']/value">
|
||||
<InvoiceRow>
|
||||
<Row>
|
||||
<xsl:value-of select="./item[@name='numpos']/value" />
|
||||
</Row>
|
||||
<FileNumber>
|
||||
<xsl:value-of select="./item[@name='name']/value"
|
||||
/>
|
||||
</FileNumber>
|
||||
<InvoiceAmount>
|
||||
<NetAmount>
|
||||
<Amount>
|
||||
<Currency>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="$currency" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</Currency>
|
||||
<Value>
|
||||
<xsl:value-of select="./item[@name='amount']/value" />
|
||||
</Value>
|
||||
</Amount>
|
||||
</NetAmount>
|
||||
<VATInformation>
|
||||
<VAT>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="./item[@name='tax']/value" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</VAT>
|
||||
</VATInformation>
|
||||
</InvoiceAmount>
|
||||
<ActivityType>
|
||||
<Codes>
|
||||
<Code Type="cs">
|
||||
<xsl:value-of select="./item[@name='category']/value" />
|
||||
</Code>
|
||||
</Codes>
|
||||
</ActivityType>
|
||||
</InvoiceRow>
|
||||
</xsl:for-each>
|
||||
</InvoiceRows>
|
||||
</Invoice>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Reference in a new issue