From 936275d97c1975264817d4eb4c2ae4da09da81d8 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Fri, 12 Mar 2021 11:31:51 +0100 Subject: [PATCH] neuer sepa export --- .../{ => deprecated}/sepa-2.0.1.imixs-report | 0 reports/sepa/{ => deprecated}/sepa-2.0.1.xsl | 0 reports/sepa/sepa-2.0.2.imixs-report | 1 + reports/sepa/sepa-2.0.2.xsl | 167 ++++++++++++++ ..._Global_Logistics_GmbH_2021-03-12T0820.xml | 211 ++++++++++++++++++ 5 files changed, 379 insertions(+) rename reports/sepa/{ => deprecated}/sepa-2.0.1.imixs-report (100%) rename reports/sepa/{ => deprecated}/sepa-2.0.1.xsl (100%) create mode 100644 reports/sepa/sepa-2.0.2.imixs-report create mode 100644 reports/sepa/sepa-2.0.2.xsl create mode 100644 sepa_Alexander_Global_Logistics_GmbH_2021-03-12T0820.xml diff --git a/reports/sepa/sepa-2.0.1.imixs-report b/reports/sepa/deprecated/sepa-2.0.1.imixs-report similarity index 100% rename from reports/sepa/sepa-2.0.1.imixs-report rename to reports/sepa/deprecated/sepa-2.0.1.imixs-report diff --git a/reports/sepa/sepa-2.0.1.xsl b/reports/sepa/deprecated/sepa-2.0.1.xsl similarity index 100% rename from reports/sepa/sepa-2.0.1.xsl rename to reports/sepa/deprecated/sepa-2.0.1.xsl diff --git a/reports/sepa/sepa-2.0.2.imixs-report b/reports/sepa/sepa-2.0.2.imixs-report new file mode 100644 index 0000000..50511ad --- /dev/null +++ b/reports/sepa/sepa-2.0.2.imixs-report @@ -0,0 +1 @@ +$uniqueid$workflowgroup$taskid$workflowsummaryinvoice.numberinvoice.dateinvoice.totalinvoice.currencycdtr.namecdtr.ibancdtr.bicdbtr.namedbtr.ibandbtr.bicpayment.typeUTF-8SEPA export executed by the SepaScheduler. See the XSL definition for details. sepatype:"workitem" AND $taskid:5500 <?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="now" select="current-dateTime()" /> <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.003.03" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.003.03 pain.001.003.03.xsd"> <CstmrCdtTrfInitn> <!-- generate header info --> <!-- compute count of invoices --> <xsl:variable name="count" select="count(/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']/item[@name='$uniqueid']/value)" /> <!-- compute total amount --> <xsl:variable name="totalsum" select="xs:decimal(sum(/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']/item[@name='invoice.total']/value))" /> <!-- round to 2 digits --> <xsl:variable name="total" select="xs:decimal(round-half-to-even($totalsum, 2))" /> <!-- shortcut for the sepa export document --> <xsl:variable name="exportWorkitem" select="/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'SEPA-Export']" /> <GrpHdr> <MsgId> <xsl:value-of select="replace($exportWorkitem/item[@name='$uniqueid']/value, '-', '')" /> </MsgId> <CreDtTm><xsl:value-of select="format-dateTime($now, '[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01]')" /></CreDtTm> <NbOfTxs> <xsl:value-of select="$count" /> </NbOfTxs> <CtrlSum> <!-- round to 2 digits --> <xsl:value-of select="$total" /> </CtrlSum> <InitgPty> <Nm> <xsl:value-of select="$exportWorkitem/item[@name='dbtr.name']/value" /> </Nm> </InitgPty> </GrpHdr> <PmtInf> <PmtInfId> <xsl:value-of select="replace($exportWorkitem/item[@name='$uniqueid']/value, '-', '')" /><xsl:text>-1</xsl:text> </PmtInfId> <PmtMtd>TRF</PmtMtd> <NbOfTxs> <xsl:value-of select="$count" /> </NbOfTxs> <CtrlSum> <!-- round to 2 digits --> <xsl:value-of select="$total" /> </CtrlSum> <PmtTpInf> <SvcLvl> <Cd>SEPA</Cd> </SvcLvl> </PmtTpInf> <ReqdExctnDt><xsl:value-of select="format-dateTime($now, '[Y0001]-[M01]-[D01]')" /></ReqdExctnDt> <Dbtr> <Nm> <xsl:value-of select="$exportWorkitem/item[@name='dbtr.name']/value" /> </Nm> </Dbtr> <DbtrAcct> <Id> <IBAN> <xsl:value-of select="replace($exportWorkitem/item[@name='dbtr.iban']/value, ' ', '')" /> </IBAN> </Id> </DbtrAcct> <DbtrAgt> <FinInstnId> <BIC> <xsl:value-of select="$exportWorkitem/item[@name='dbtr.bic']/value" /> </BIC> </FinInstnId> </DbtrAgt> <ChrgBr>SLEV</ChrgBr> <!-- generate CdtTrfTxInf for each invoice --> <xsl:apply-templates select="/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']" /> </PmtInf> </CstmrCdtTrfInitn> </Document> </xsl:template> <!-- This template builds sepa header info --> <xsl:template match="/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'SEPA-Export']"> <!-- not in use --> </xsl:template> <!-- This template builds sepa payment info for each invoice --> <xsl:template match="/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']"> <CdtTrfTxInf xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.003.03"> <PmtId> <EndToEndId>NOTPROVIDED</EndToEndId> </PmtId> <Amt> <InstdAmt> <xsl:attribute name="Ccy"><xsl:value-of select="item[@name='invoice.currency']/value" /></xsl:attribute> <xsl:value-of select="item[@name='invoice.total']/value" /> </InstdAmt> </Amt> <CdtrAgt> <FinInstnId> <BIC> <xsl:value-of select="item[@name='cdtr.bic']/value" /> </BIC> </FinInstnId> </CdtrAgt> <Cdtr> <!-- MAX70 --> <Nm> <xsl:value-of select="substring(item[@name='cdtr.name']/value, 1, 70)" /> </Nm> </Cdtr> <CdtrAcct> <Id> <IBAN> <xsl:value-of select="replace(item[@name='cdtr.iban']/value, ' ', '')" /> </IBAN> </Id> </CdtrAcct> <RmtInf> <!-- Max140Text --> <Ustrd> <xsl:value-of select="item[@name='$workflowsummary']/value" /> </Ustrd> </RmtInf> </CdtTrfTxInf> </xsl:template></xsl:stylesheet>/office-alexander-logistics/reports/sepa/sepa-2.0.2.xsl \ No newline at end of file diff --git a/reports/sepa/sepa-2.0.2.xsl b/reports/sepa/sepa-2.0.2.xsl new file mode 100644 index 0000000..4d074fb --- /dev/null +++ b/reports/sepa/sepa-2.0.2.xsl @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + TRF + + + + + + + + + + SEPA + + + + + + + + + + + + + + + + + + + + + + + SLEV + + + + + + + + + + + + + + + + + + + + + + + + + NOTPROVIDED + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sepa_Alexander_Global_Logistics_GmbH_2021-03-12T0820.xml b/sepa_Alexander_Global_Logistics_GmbH_2021-03-12T0820.xml new file mode 100644 index 0000000..957832d --- /dev/null +++ b/sepa_Alexander_Global_Logistics_GmbH_2021-03-12T0820.xml @@ -0,0 +1,211 @@ + + + + + 2dd47d3339a94b519fa0f2b50f168167 + 2021-03-12T08:20:00 + 7 + 2371.2 + + Alexander Global Logistics GmbH + + + + 2dd47d3339a94b519fa0f2b50f168167-1 + TRF + 7 + 2371.2 + + + SEPA + + + 2021-03-12 + + Alexander Global Logistics GmbH + + + + DE97290501010081216392 + + + + + SBREDE22XXX + + + SLEV + + + NOTPROVIDED + + + 530.00 + + + + AGRIPLPR + + + + ZUMALTA SPÖLKA Z OGRANICZONA + + + + PL70194012100103512700210000 + + + + 1000537: ZUMALTA SPÖLKA Z OGRANICZONA 285/02/FV/ZUM/2021/EU (EUR 530.00) Import Forest + + + + + NOTPROVIDED + + + 300 + + + + DEUTDEHBXXX + + + + CMA CGM DEUTSCHLAND GMBH + + + + DE56290700500205118302 + + + + 1000541: CMA CGM DEUTSCHLAND GMBH DEIM2823046 (EUR 300) Import Forest + + + + + NOTPROVIDED + + + 385 + + + + DEUTDEHBXXX + + + + CMA CGM DEUTSCHLAND GMBH + + + + DE56290700500205118302 + + + + 1000591: CMA CGM DEUTSCHLAND GMBH DEIM2793317 (EUR 385) Import Forest + + + + + NOTPROVIDED + + + 285.6 + + + + + + + + Hamburg Süd + + + + + + + + 1000592: Hamburg Süd 1000082600 (EUR 285.6) Import Forest + + + + + NOTPROVIDED + + + 285.60 + + + + CITIDEFF + + + + Hamburg Süd + + + + DE66502109000218481671 + + + + 1000593: Hamburg Süd 1000032600 (EUR 285.60) Import Forest + + + + + NOTPROVIDED + + + 385 + + + + DEUTDEHBXXX + + + + CMA CGM DEUTSCHLAND GMBH + + + + DE56290700500205118302 + + + + 1000594: CMA CGM DEUTSCHLAND GMBH DEIM2806405 (EUR 385) Import Forest + + + + + NOTPROVIDED + + + 200.00 + + + + DEUTDEHBXXX + + + + CMA CGM DEUTSCHLAND GMBH + + + + DE56290700500205118302 + + + + 1000642: CMA CGM DEUTSCHLAND GMBH DEIM2825816 (EUR 200.00) Import Forest + + + + +