]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commitdiff
Fix #33 -- Fix order of EffectiveSpecifiedPeriod
authorRaphael Michel <michel@rami.io>
Fri, 4 Oct 2024 13:17:18 +0000 (15:17 +0200)
committerRaphael Michel <michel@rami.io>
Fri, 4 Oct 2024 13:17:18 +0000 (15:17 +0200)
drafthorse/models/document.py
tests/samples/zugferd_2p1_EXTENDED_Fremdwaehrung-CUSTOM-PeriodAndNote.xml [new file with mode: 0644]

index 93f5c9b09ccda5131d1073f9ade40c1f281c85b8..4b0e923c028bcbbf8a6cb100034c501cd8a7175a 100644 (file)
@@ -80,13 +80,13 @@ class Header(Element):
         _d="Indikator Original/Kopie",
     )
     languages = MultiStringField(NS_RAM, "LanguageID", required=False, profile=EXTENDED)
+    notes = MultiField(IncludedNote)
     effective_period = Field(
         EffectivePeriod,
         required=False,
         profile=EXTENDED,
         _d="Vertragliches Fälligkeitsdatum der Rechnung",
     )
-    notes = MultiField(IncludedNote)
 
     class Meta:
         namespace = NS_RSM
diff --git a/tests/samples/zugferd_2p1_EXTENDED_Fremdwaehrung-CUSTOM-PeriodAndNote.xml b/tests/samples/zugferd_2p1_EXTENDED_Fremdwaehrung-CUSTOM-PeriodAndNote.xml
new file mode 100644 (file)
index 0000000..f1ab846
--- /dev/null
@@ -0,0 +1,345 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- English disclaimer below.-->\r
+<!--Nutzungsrechte \r
+ZUGFeRD Datenformat Version 2.1.1, 01.07.2020\r
+Beispiel Version 01.07.2020\r
\r
+Zweck des Forums elektronisch Rechnung Deutschland, welches am 31. März 2010 unter der Arbeitsgemeinschaft für \r
+wirtschaftliche Verwaltung e. V. gegründet wurde, ist u. a. die Schaffung und Spezifizierung eines offenen Datenformats \r
+für strukturierten elektronischen Datenaustausch auf der Grundlage offener und nicht diskriminierender, standardisierter \r
+Technologien („ZUGFeRD Datenformat“).\r
\r
+Das ZUGFeRD Datenformat wird nach Maßgabe des FeRD sowohl Unternehmen als auch der öffentlichen Verwaltung \r
+frei zugänglich gemacht. Hierfür bietet FeRD allen Unternehmen und Organisationen der öffentlichen Verwaltung eine \r
+Lizenz für die Nutzung des urheberrechtlich geschützten ZUGFeRD-Datenformats zu fairen, sachgerechten und nicht \r
+diskriminierenden Bedingungen an.\r
\r
+Die Spezifikation des FeRD zur Implementierung des ZUGFeRD Datenformats ist in ihrer jeweils geltenden Fassung \r
+abrufbar unter www.ferd-net.de.\r
\r
+Im Einzelnen schließt die Nutzungsgewährung ein: \r
+=====================================\r
\r
+FeRD räumt eine Lizenz für die Nutzung des urheberrechtlich geschützten ZUGFeRD Datenformats in der jeweils \r
+geltenden und akzeptierten Fassung (www.ferd-net.de) ein. \r
+Die Lizenz beinhaltet ein unwiderrufliches Nutzungsrecht einschließlich des Rechts der Weiterentwicklung, \r
+Weiterbearbeitung und Verbindung mit anderen Produkten.\r
+Die Lizenz gilt insbesondere für die Entwicklung, die Gestaltung, die Herstellung, den Verkauf, die Nutzung oder \r
+anderweitige Verwendung des ZUGFeRD Datenformats für Hardware- und/oder Softwareprodukte sowie sonstige \r
+Anwendungen und Dienste. \r
+Diese Lizenz schließt nicht die wesentlichen Patente der Mitglieder von FeRD ein. Als wesentliche Patente sind Patente \r
+und Patentanmeldungen weltweit zu verstehen, die einen oder mehrere Patentansprüche beinhalten, bei denen es sich um \r
+notwendige Ansprüche handelt. Notwendige Ansprüche sind lediglich jene Ansprüche der Wesentlichen Patente, die durch \r
+die Implementierung des ZUGFeRD Datenformats notwendigerweise verletzt würden. \r
+Der Lizenznehmer ist berechtigt, seinen jeweiligen Konzerngesellschaften ein unbefristetes, weltweites, nicht übertragbares, \r
+unwiderrufliches Nutzungsrecht einschließlich des Rechts der Weiterentwicklung, Weiterbearbeitung und Verbindung mit \r
+anderen Produkten einzuräumen. \r
\r
+Die Lizenz wird kostenfrei zur Verfügung gestellt. \r
\r
+Außer im Falle vorsätzlichen Verschuldens oder grober Fahrlässigkeit haftet FeRD weder für Nutzungsausfall, entgangenen \r
+Gewinn, Datenverlust, Kommunikationsverlust, Einnahmeausfall, Vertragseinbußen, Geschäftsausfall oder für Kosten, \r
+Schäden, Verluste oder Haftpflichten im Zusammenhang mit einer Unterbrechung der Geschäftstätigkeit, noch für konkrete, \r
+beiläufig entstandene, mittelbare Schäden, Straf- oder Folgeschäden und zwar auch dann nicht, wenn die Möglichkeit der \r
+Kosten, Verluste bzw. Schäden hätte normalerweise vorhergesehen werden können.-->\r
+\r
+ <!--Right of use\r
+ZUGFeRD Data format version 2.1.1, July 1, 2020\r
+\r
+The purpose of the Forum elektronische Rechnung Deutschland (FeRD), which was founded on March 31, 2010 under the\r
+umbrella of Arbeitsgemeinschaft für wirtschaftliche Verwaltung e. V., is, among other things, to create and specify an\r
+open data format for structured electronic data exchange on the basis of open and non discriminatory, standardised\r
+technologies ("ZUGFeRD data format").\r
+\r
+The ZUGFeRD data format is used by both companies and public administration according to the FeRD\r
+made freely accessible. For this purpose FeRD offers all companies and organisations of the public administration a\r
+License to use the copyrighted ZUGFeRD data format in a fair, appropriate and non\r
+discriminatory conditions.\r
+\r
+The specification of the FeRD for the implementation of the ZUGFeRD data format is, in its currently valid version\r
+available at www.ferd-net.de.\r
+\r
+In detail, the grant of use includes\r
+=====================================\r
+\r
+FeRD grants a license for the use of the copyrighted ZUGFeRD data format in the respective\r
+valid and accepted version (www.ferd-net.de).\r
+The license includes an irrevocable right of use including the right of further development,\r
+Further processing and connection with other products.\r
+The license applies in particular to the development, design, production, sale, use or\r
+other use of the ZUGFeRD data format for hardware and/or software products and other\r
+applications and services.\r
+This license does not include the essential patents of the members of FeRD. The essential patents are patents\r
+and patent applications worldwide which contain one or more claims that are\r
+necessary claims. Necessary claims are only those claims of the essential patents which are\r
+the implementation of the ZUGFeRD data format would necessarily be violated.\r
+The Licensee is entitled to provide its respective group companies with an unlimited, worldwide, non-transferable,\r
+irrevocable right of use including the right of further development, further processing and connection with\r
+other products.\r
+\r
+The license is provided free of charge.\r
+\r
+Except in the case of intentional fault or gross negligence, FeRD is not liable for loss of use, loss of \r
+Profit, loss of data, loss of communication, loss of revenue, loss of contracts, loss of business or for costs \r
+damages, losses or liabilities in connection with an interruption of business, nor for concrete, \r
+incidental, indirect, punitive or consequential damages, even if the possibility of \r
+costs, losses or damages could normally have been foreseen.-->\r
+\r
+<rsm:CrossIndustryInvoice xmlns:a="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:10" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">\r
+       <rsm:ExchangedDocumentContext>\r
+               <ram:BusinessProcessSpecifiedDocumentContextParameter>\r
+                       <ram:ID>Beispielgeschäftsprozess</ram:ID>\r
+               </ram:BusinessProcessSpecifiedDocumentContextParameter>\r
+               <ram:GuidelineSpecifiedDocumentContextParameter>\r
+                       <ram:ID>urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended</ram:ID>\r
+               </ram:GuidelineSpecifiedDocumentContextParameter>\r
+       </rsm:ExchangedDocumentContext>\r
+       <rsm:ExchangedDocument>\r
+               <ram:ID>47110815</ram:ID>\r
+               <ram:Name>RECHNUNG</ram:Name>\r
+               <ram:TypeCode>380</ram:TypeCode>\r
+               <ram:IssueDateTime>\r
+                       <udt:DateTimeString format="102">20181031</udt:DateTimeString>\r
+               </ram:IssueDateTime>\r
+               <ram:IncludedNote>\r
+                       <ram:Content>Mitglieder der Geschäftsleitung\r
+H. Meier Geschäftsführer\r
+T. Müller Prokurist\r
+HRB Braunschweig 12345</ram:Content>\r
+                       <ram:SubjectCode>REG</ram:SubjectCode>\r
+               </ram:IncludedNote>\r
+               <ram:IncludedNote>\r
+                       <ram:Content>Vom 17. Dezember 2018 bis 6. Januar 2019 haben wir Betriebsferien.</ram:Content>\r
+                       <ram:SubjectCode>AAI</ram:SubjectCode>\r
+               </ram:IncludedNote>\r
+               <ram:IncludedNote>\r
+                       <ram:Content>Aus konzern-internen Gründen wird der Steuerbetrag sowohl in der Rechungswährung (EUR) als auch in der Buchwährung (GBP) ausgegeben.</ram:Content>\r
+                       <ram:SubjectCode>TXD</ram:SubjectCode>\r
+               </ram:IncludedNote>\r
+        <ram:EffectiveSpecifiedPeriod>\r
+            <ram:CompleteDateTime>\r
+                <udt:DateTimeString format="102">20240906</udt:DateTimeString>\r
+            </ram:CompleteDateTime>\r
+        </ram:EffectiveSpecifiedPeriod>\r
+    </rsm:ExchangedDocument>\r
+       <rsm:SupplyChainTradeTransaction>\r
+               <ram:IncludedSupplyChainTradeLineItem>\r
+                       <ram:AssociatedDocumentLineDocument>\r
+                               <ram:LineID>1</ram:LineID>\r
+                               <ram:IncludedNote>\r
+                                       <ram:Content>Materialzertifikat X-234 gem ISO XYZ.\r
+Ware bleibt bis zur vollständigen Bezahlung unser Eigentum.\r
+                                       </ram:Content>\r
+                               </ram:IncludedNote>\r
+                       </ram:AssociatedDocumentLineDocument>\r
+                       <ram:SpecifiedTradeProduct>\r
+                               <ram:SellerAssignedID>CO-123/V2A</ram:SellerAssignedID>\r
+                               <ram:BuyerAssignedID>Toolbox 0815</ram:BuyerAssignedID>\r
+                               <ram:Name>Stahlcoil</ram:Name>\r
+                               <ram:OriginTradeCountry>\r
+                                       <ram:ID>DE</ram:ID>\r
+                               </ram:OriginTradeCountry>\r
+                       </ram:SpecifiedTradeProduct>\r
+                       <ram:SpecifiedLineTradeAgreement>\r
+                               <ram:BuyerOrderReferencedDocument>\r
+                                       <ram:IssuerAssignedID>ORDER84359</ram:IssuerAssignedID>\r
+                                       <ram:LineID>1</ram:LineID>\r
+                               </ram:BuyerOrderReferencedDocument>\r
+                               <ram:GrossPriceProductTradePrice>\r
+                                       <ram:ChargeAmount>100.00</ram:ChargeAmount>\r
+                                       <ram:BasisQuantity unitCode="H87">1</ram:BasisQuantity>\r
+                               </ram:GrossPriceProductTradePrice>\r
+                               <ram:NetPriceProductTradePrice>\r
+                                       <ram:ChargeAmount>100</ram:ChargeAmount>\r
+                                       <ram:BasisQuantity unitCode="H87">1</ram:BasisQuantity>\r
+                               </ram:NetPriceProductTradePrice>\r
+                       </ram:SpecifiedLineTradeAgreement>\r
+                       <ram:SpecifiedLineTradeDelivery>\r
+                               <ram:BilledQuantity unitCode="H87">10</ram:BilledQuantity>\r
+                       </ram:SpecifiedLineTradeDelivery>\r
+                       <ram:SpecifiedLineTradeSettlement>\r
+                               <ram:ApplicableTradeTax>\r
+                                       <ram:TypeCode>VAT</ram:TypeCode>\r
+                                       <ram:CategoryCode>S</ram:CategoryCode>\r
+                                       <ram:RateApplicablePercent>19</ram:RateApplicablePercent>\r
+                               </ram:ApplicableTradeTax>\r
+                               <ram:SpecifiedTradeAllowanceCharge>\r
+                                       <ram:ChargeIndicator>\r
+                                               <udt:Indicator>false</udt:Indicator>\r
+                                       </ram:ChargeIndicator>\r
+                                       <ram:CalculationPercent>10</ram:CalculationPercent>\r
+                                       <ram:BasisAmount>1000</ram:BasisAmount>\r
+                                       <ram:ActualAmount>100</ram:ActualAmount>\r
+                                       <ram:ReasonCode>CAO</ram:ReasonCode>\r
+                                       <ram:Reason>Lagerware</ram:Reason>\r
+                               </ram:SpecifiedTradeAllowanceCharge>\r
+                               <ram:SpecifiedTradeAllowanceCharge>\r
+                                       <ram:ChargeIndicator>\r
+                                               <udt:Indicator>false</udt:Indicator>\r
+                                       </ram:ChargeIndicator>\r
+                                       <ram:BasisAmount>1000</ram:BasisAmount>\r
+                                       <ram:ActualAmount>50</ram:ActualAmount>\r
+                                       <ram:ReasonCode>ADZ</ram:ReasonCode>\r
+                                       <ram:Reason>Direktbelieferung</ram:Reason>\r
+                               </ram:SpecifiedTradeAllowanceCharge>\r
+                               <ram:SpecifiedTradeSettlementLineMonetarySummation>\r
+                                       <ram:LineTotalAmount>850</ram:LineTotalAmount>\r
+                               </ram:SpecifiedTradeSettlementLineMonetarySummation>\r
+                       </ram:SpecifiedLineTradeSettlement>\r
+               </ram:IncludedSupplyChainTradeLineItem>\r
+               <ram:ApplicableHeaderTradeAgreement>\r
+                       <ram:SellerTradeParty>\r
+                               <ram:ID>12345676</ram:ID>\r
+                               <ram:Name>Rohstoff AG Salzgitter</ram:Name>\r
+                               <ram:PostalTradeAddress>\r
+                                       <ram:PostcodeCode>38226</ram:PostcodeCode>\r
+                                       <ram:LineOne>Marktstr. 153</ram:LineOne>\r
+                                       <ram:CityName>Salzgitter</ram:CityName>\r
+                                       <ram:CountryID>DE</ram:CountryID>\r
+                               </ram:PostalTradeAddress>\r
+                               <ram:SpecifiedTaxRegistration>\r
+                                       <ram:ID schemeID="VA">DE123456789</ram:ID>\r
+                               </ram:SpecifiedTaxRegistration>\r
+                       </ram:SellerTradeParty>\r
+                       <ram:BuyerTradeParty>\r
+                               <ram:ID>75969813</ram:ID>\r
+                               <ram:Name>Metallbau Leipzig GmbH &amp; Co. KG</ram:Name>\r
+                               <ram:PostalTradeAddress>\r
+                                       <ram:PostcodeCode>12345</ram:PostcodeCode>\r
+                                       <ram:LineOne>Pappelallee 15</ram:LineOne>\r
+                                       <ram:LineTwo>Hof 3</ram:LineTwo>\r
+                                       <ram:CityName>Leipzig</ram:CityName>\r
+                                       <ram:CountryID>DE</ram:CountryID>\r
+                               </ram:PostalTradeAddress>\r
+                               <ram:URIUniversalCommunication>\r
+                                       <ram:URIID schemeID="9958">04 0 11 000 - 12345 12345 - 35</ram:URIID>\r
+                               </ram:URIUniversalCommunication>\r
+                       </ram:BuyerTradeParty>\r
+                       <ram:SellerTaxRepresentativeTradeParty>\r
+                               <ram:Name>Global Supplies Financial Services</ram:Name>\r
+                               <ram:PostalTradeAddress>\r
+                                       <ram:PostcodeCode>12345</ram:PostcodeCode>\r
+                                       <ram:LineOne>Friedrichstraße 165</ram:LineOne>\r
+                                       <ram:CityName>Berlin</ram:CityName>\r
+                                       <ram:CountryID>DE</ram:CountryID>\r
+                               </ram:PostalTradeAddress>\r
+                               <ram:SpecifiedTaxRegistration>\r
+                                       <ram:ID schemeID="VA">DE1334567</ram:ID>\r
+                               </ram:SpecifiedTaxRegistration>\r
+                       </ram:SellerTaxRepresentativeTradeParty>\r
+               </ram:ApplicableHeaderTradeAgreement>\r
+               <ram:ApplicableHeaderTradeDelivery>\r
+                       <ram:ShipToTradeParty>\r
+                               <ram:ID>75969815</ram:ID>\r
+                               <ram:Name>Metallbau Leipzig GmbH &amp; Co. KG</ram:Name>\r
+                               <ram:PostalTradeAddress>\r
+                                       <ram:PostcodeCode>12347</ram:PostcodeCode>\r
+                                       <ram:LineOne>Eichenpromenade 37</ram:LineOne>\r
+                                       <ram:LineTwo>Tor 1</ram:LineTwo>\r
+                                       <ram:CityName>Metallstadt</ram:CityName>\r
+                                       <ram:CountryID>DE</ram:CountryID>\r
+                               </ram:PostalTradeAddress>\r
+                               <ram:URIUniversalCommunication>\r
+                                       <ram:URIID schemeID="0060">999999999</ram:URIID>\r
+                               </ram:URIUniversalCommunication>\r
+                       </ram:ShipToTradeParty>\r
+               </ram:ApplicableHeaderTradeDelivery>\r
+               <ram:ApplicableHeaderTradeSettlement>\r
+                       <ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode>\r
+                       <ram:InvoiceCurrencyCode>GBP</ram:InvoiceCurrencyCode>\r
+                       <ram:PayeeTradeParty>\r
+                               <ram:GlobalID schemeID="0060">432156789</ram:GlobalID>\r
+                               <ram:Name>Global Supplies Financial Services</ram:Name>\r
+                               <ram:PostalTradeAddress>\r
+                                       <ram:PostcodeCode>12345</ram:PostcodeCode>\r
+                                       <ram:LineOne>Friedrichstraße 165</ram:LineOne>\r
+                                       <ram:CityName>Berlin</ram:CityName>\r
+                                       <ram:CountryID>DE</ram:CountryID>\r
+                               </ram:PostalTradeAddress>\r
+                       </ram:PayeeTradeParty>\r
+                       <ram:TaxApplicableTradeCurrencyExchange>\r
+                               <ram:SourceCurrencyCode>GBP</ram:SourceCurrencyCode>\r
+                               <ram:TargetCurrencyCode>EUR</ram:TargetCurrencyCode>\r
+                               <ram:ConversionRate>1.12244</ram:ConversionRate>\r
+                               <ram:ConversionRateDateTime>\r
+                                       <udt:DateTimeString format="102">20181031</udt:DateTimeString>\r
+                               </ram:ConversionRateDateTime>\r
+                       </ram:TaxApplicableTradeCurrencyExchange>\r
+                       <ram:SpecifiedTradeSettlementPaymentMeans>\r
+                               <ram:TypeCode>58</ram:TypeCode>\r
+                               <ram:PayeePartyCreditorFinancialAccount>\r
+                                       <ram:IBANID>DE12 1234 4321 9876 00</ram:IBANID>\r
+                                       <ram:AccountName>Global Supplies Financial Services</ram:AccountName>\r
+                               </ram:PayeePartyCreditorFinancialAccount>\r
+                       </ram:SpecifiedTradeSettlementPaymentMeans>\r
+                       <ram:ApplicableTradeTax>\r
+                               <ram:CalculatedAmount>163.16</ram:CalculatedAmount>\r
+                               <ram:TypeCode>VAT</ram:TypeCode>\r
+                               <ram:BasisAmount>858.75</ram:BasisAmount>\r
+                               <ram:LineTotalBasisAmount>850</ram:LineTotalBasisAmount>\r
+                               <ram:AllowanceChargeBasisAmount>8.75</ram:AllowanceChargeBasisAmount>\r
+                               <ram:CategoryCode>S</ram:CategoryCode>\r
+                               <ram:RateApplicablePercent>19</ram:RateApplicablePercent>\r
+                       </ram:ApplicableTradeTax>\r
+                       <ram:BillingSpecifiedPeriod>\r
+                                       <ram:StartDateTime>\r
+                                               <udt:DateTimeString format="102">20181001</udt:DateTimeString>\r
+                                       </ram:StartDateTime>\r
+                                       <ram:EndDateTime>\r
+                                               <udt:DateTimeString format="102">20181031</udt:DateTimeString>\r
+                                       </ram:EndDateTime>\r
+                               </ram:BillingSpecifiedPeriod>\r
+        <ram:SpecifiedTradeAllowanceCharge>\r
+                               <ram:ChargeIndicator>\r
+                                       <udt:Indicator>true</udt:Indicator>\r
+                               </ram:ChargeIndicator>\r
+                               <ram:ActualAmount>30</ram:ActualAmount>\r
+                               <ram:ReasonCode>ABK</ram:ReasonCode>\r
+                               <ram:Reason>Einwegverpackung</ram:Reason>\r
+                               <ram:CategoryTradeTax>\r
+                                       <ram:TypeCode>VAT</ram:TypeCode>\r
+                                       <ram:CategoryCode>S</ram:CategoryCode>\r
+                                       <ram:RateApplicablePercent>19</ram:RateApplicablePercent>\r
+                               </ram:CategoryTradeTax>\r
+                       </ram:SpecifiedTradeAllowanceCharge>\r
+                       <ram:SpecifiedTradeAllowanceCharge>\r
+                               <ram:ChargeIndicator>\r
+                                       <udt:Indicator>false</udt:Indicator>\r
+                               </ram:ChargeIndicator>\r
+                               <ram:CalculationPercent>2.5</ram:CalculationPercent>\r
+                               <ram:BasisAmount>850</ram:BasisAmount>\r
+                               <ram:ActualAmount>21.25</ram:ActualAmount>\r
+                               <ram:ReasonCode>ABK</ram:ReasonCode>\r
+                               <ram:Reason>Stammkundenrabatt</ram:Reason>\r
+                               <ram:CategoryTradeTax>\r
+                                       <ram:TypeCode>VAT</ram:TypeCode>\r
+                                       <ram:CategoryCode>S</ram:CategoryCode>\r
+                                       <ram:RateApplicablePercent>19</ram:RateApplicablePercent>\r
+                               </ram:CategoryTradeTax>\r
+                       </ram:SpecifiedTradeAllowanceCharge>\r
+                       <ram:SpecifiedTradePaymentTerms>\r
+                               <ram:Description>Zahlbar ohne Abschlag bis </ram:Description>\r
+                               <ram:DueDateDateTime>\r
+                                       <udt:DateTimeString format="102">20181120</udt:DateTimeString>\r
+                               </ram:DueDateDateTime>\r
+                       </ram:SpecifiedTradePaymentTerms>\r
+                       <ram:SpecifiedTradePaymentTerms>\r
+                               <ram:Description>Zahlbar mit 2% Skonto bis</ram:Description>\r
+                               <ram:DueDateDateTime>\r
+                                       <udt:DateTimeString format="102">20181114</udt:DateTimeString>\r
+                               </ram:DueDateDateTime>\r
+                       </ram:SpecifiedTradePaymentTerms>\r
+                       <ram:SpecifiedTradeSettlementHeaderMonetarySummation>\r
+                               <ram:LineTotalAmount>850</ram:LineTotalAmount>\r
+                               <ram:ChargeTotalAmount>30</ram:ChargeTotalAmount>\r
+                               <ram:AllowanceTotalAmount>21.25</ram:AllowanceTotalAmount>\r
+                               <ram:TaxBasisTotalAmount>858.75</ram:TaxBasisTotalAmount>\r
+                               <ram:TaxTotalAmount currencyID="GBP">163.16</ram:TaxTotalAmount>\r
+                               <ram:TaxTotalAmount currencyID="EUR">183.14</ram:TaxTotalAmount>\r
+                               <ram:GrandTotalAmount>1021.91</ram:GrandTotalAmount>\r
+                               <ram:TotalPrepaidAmount>500</ram:TotalPrepaidAmount>\r
+                               <ram:DuePayableAmount>521.91</ram:DuePayableAmount>\r
+                       </ram:SpecifiedTradeSettlementHeaderMonetarySummation>\r
+               </ram:ApplicableHeaderTradeSettlement>\r
+       </rsm:SupplyChainTradeTransaction>\r
+</rsm:CrossIndustryInvoice>\r