<?xml version="1.0" encoding="UTF-8"?>
<rsm:CrossIndustryDocument xmlns:rsm="urn:ferd:CrossIndustryDocument:invoice:1p0"
                           xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12"
                           xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:15">
    <rsm:SpecifiedExchangedDocumentContext>
        <ram:GuidelineSpecifiedDocumentContextParameter>
            <ram:ID>urn:ferd:CrossIndustryDocument:invoice:1p0:basic</ram:ID>
        </ram:GuidelineSpecifiedDocumentContextParameter>
    </rsm:SpecifiedExchangedDocumentContext>

    <rsm:HeaderExchangedDocument>
        <ram:ID>INV-2026-00042</ram:ID>
        <ram:Name>INVOICE</ram:Name>
        <ram:TypeCode>380</ram:TypeCode>
        <ram:IssueDateTime>
            <udt:DateTimeString format="102">20260206</udt:DateTimeString>
        </ram:IssueDateTime>

        <ram:IncludedNote>
            <ram:Content>Thank you for your order.</ram:Content>
        </ram:IncludedNote>
        <ram:IncludedNote>
            <ram:Content>Please quote the invoice number as payment reference.</ram:Content>
        </ram:IncludedNote>
        <ram:IncludedNote>
            <ram:Content>ExampleSoft GmbH
                Musterweg 8
                24103 Kiel

                Managing Director:
                Max Mustermann</ram:Content>
            <ram:SubjectCode>REG</ram:SubjectCode>
        </ram:IncludedNote>
    </rsm:HeaderExchangedDocument>

    <rsm:SpecifiedSupplyChainTradeTransaction>
        <ram:ApplicableSupplyChainTradeAgreement>
            <ram:SellerTradeParty>
                <ram:Name>ExampleSoft GmbH</ram:Name>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>24103</ram:PostcodeCode>
                    <ram:LineOne>Musterweg 8</ram:LineOne>
                    <ram:CityName>Kiel</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                </ram:PostalTradeAddress>
                <ram:SpecifiedTaxRegistration>
                    <ram:ID schemeID="FC">16/123/45678</ram:ID>
                </ram:SpecifiedTaxRegistration>
                <ram:SpecifiedTaxRegistration>
                    <ram:ID schemeID="VA">DE815298123</ram:ID>
                </ram:SpecifiedTaxRegistration>
            </ram:SellerTradeParty>

            <ram:BuyerTradeParty>
                <ram:Name>ExampleCustomer AG</ram:Name>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>60311</ram:PostcodeCode>
                    <ram:LineOne>Example Street 12</ram:LineOne>
                    <ram:LineTwo>2nd Floor</ram:LineTwo>
                    <ram:CityName>Frankfurt am Main</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                </ram:PostalTradeAddress>
            </ram:BuyerTradeParty>

            <ram:BuyerOrderReferencedDocument>
                <ram:ID>PO-2026-10017</ram:ID>
            </ram:BuyerOrderReferencedDocument>
        </ram:ApplicableSupplyChainTradeAgreement>

        <ram:ApplicableSupplyChainTradeDelivery>
            <ram:ActualDeliverySupplyChainEvent>
                <ram:OccurrenceDateTime>
                    <udt:DateTimeString format="102">20260206</udt:DateTimeString>
                </ram:OccurrenceDateTime>
            </ram:ActualDeliverySupplyChainEvent>
        </ram:ApplicableSupplyChainTradeDelivery>

        <ram:ApplicableSupplyChainTradeSettlement>
            <ram:PaymentReference>INV-2026-00042</ram:PaymentReference>
            <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>

            <ram:SpecifiedTradeSettlementPaymentMeans>
                <ram:TypeCode>30</ram:TypeCode>
                <ram:Information>Bank transfer</ram:Information>
                <ram:PayeePartyCreditorFinancialAccount>
                    <ram:IBANID>DE89370400440532013000</ram:IBANID>
                    <ram:AccountName></ram:AccountName>
                    <ram:ProprietaryID></ram:ProprietaryID>
                </ram:PayeePartyCreditorFinancialAccount>
                <ram:PayeeSpecifiedCreditorFinancialInstitution>
                    <ram:BICID>COBADEFFXXX</ram:BICID>
                    <ram:GermanBankleitzahlID></ram:GermanBankleitzahlID>
                    <ram:Name></ram:Name>
                </ram:PayeeSpecifiedCreditorFinancialInstitution>
            </ram:SpecifiedTradeSettlementPaymentMeans>

            <!-- Tax breakdown: 7% on 150.00 => 10.50 / 19% on 300.00 => 57.00 -->
            <ram:ApplicableTradeTax>
                <ram:CalculatedAmount currencyID="EUR">10.50</ram:CalculatedAmount>
                <ram:TypeCode>VAT</ram:TypeCode>
                <ram:BasisAmount currencyID="EUR">150.00</ram:BasisAmount>
                <ram:ApplicablePercent>7.00</ram:ApplicablePercent>
            </ram:ApplicableTradeTax>
            <ram:ApplicableTradeTax>
                <ram:CalculatedAmount currencyID="EUR">57.00</ram:CalculatedAmount>
                <ram:TypeCode>VAT</ram:TypeCode>
                <ram:BasisAmount currencyID="EUR">300.00</ram:BasisAmount>
                <ram:ApplicablePercent>19.00</ram:ApplicablePercent>
            </ram:ApplicableTradeTax>

            <ram:BillingSpecifiedPeriod>
                <ram:StartDateTime>
                    <udt:DateTimeString format="102">20260101</udt:DateTimeString>
                </ram:StartDateTime>
                <ram:EndDateTime>
                    <udt:DateTimeString format="102">20260131</udt:DateTimeString>
                </ram:EndDateTime>
            </ram:BillingSpecifiedPeriod>

            <ram:SpecifiedTradePaymentTerms>
                <ram:Description>Payable within 30 days net until 2026-03-08</ram:Description>
                <ram:DueDateDateTime>
                    <udt:DateTimeString format="102">20260308</udt:DateTimeString>
                </ram:DueDateDateTime>
            </ram:SpecifiedTradePaymentTerms>

            <ram:SpecifiedTradeSettlementMonetarySummation>
                <ram:LineTotalAmount currencyID="EUR">450.00</ram:LineTotalAmount>
                <ram:ChargeTotalAmount currencyID="EUR">0.00</ram:ChargeTotalAmount>
                <ram:AllowanceTotalAmount currencyID="EUR">0.00</ram:AllowanceTotalAmount>
                <ram:TaxBasisTotalAmount currencyID="EUR">450.00</ram:TaxBasisTotalAmount>
                <ram:TaxTotalAmount currencyID="EUR">67.50</ram:TaxTotalAmount>
                <ram:GrandTotalAmount currencyID="EUR">517.50</ram:GrandTotalAmount>
            </ram:SpecifiedTradeSettlementMonetarySummation>
        </ram:ApplicableSupplyChainTradeSettlement>

        <!-- Line item 1 (7%) -->
        <ram:IncludedSupplyChainTradeLineItem>
            <ram:AssociatedDocumentLineDocument>
                <ram:LineID>1</ram:LineID>
                <ram:IncludedNote>
                    <ram:Content>Supply: technical handbook (reduced VAT rate)</ram:Content>
                </ram:IncludedNote>
            </ram:AssociatedDocumentLineDocument>

            <ram:SpecifiedSupplyChainTradeAgreement>
                <ram:GrossPriceProductTradePrice>
                    <ram:ChargeAmount currencyID="EUR">15.00</ram:ChargeAmount>
                    <ram:AppliedTradeAllowanceCharge>
                        <ram:ChargeIndicator>
                            <udt:Indicator>false</udt:Indicator>
                        </ram:ChargeIndicator>
                        <ram:ActualAmount currencyID="EUR">0.00</ram:ActualAmount>
                    </ram:AppliedTradeAllowanceCharge>
                </ram:GrossPriceProductTradePrice>
                <ram:NetPriceProductTradePrice>
                    <ram:ChargeAmount currencyID="EUR">15.00</ram:ChargeAmount>
                </ram:NetPriceProductTradePrice>
            </ram:SpecifiedSupplyChainTradeAgreement>

            <ram:SpecifiedSupplyChainTradeDelivery>
                <ram:BilledQuantity unitCode="C62">10.0000</ram:BilledQuantity>
            </ram:SpecifiedSupplyChainTradeDelivery>

            <ram:SpecifiedSupplyChainTradeSettlement>
                <ram:ApplicableTradeTax>
                    <ram:TypeCode>VAT</ram:TypeCode>
                    <ram:ApplicablePercent>7.00</ram:ApplicablePercent>
                    <ram:CategoryCode>S</ram:CategoryCode>
                </ram:ApplicableTradeTax>
                <ram:SpecifiedTradeSettlementMonetarySummation>
                    <ram:LineTotalAmount currencyID="EUR">150.00</ram:LineTotalAmount>
                </ram:SpecifiedTradeSettlementMonetarySummation>
            </ram:SpecifiedSupplyChainTradeSettlement>

            <ram:SpecifiedTradeProduct>
                <ram:SellerAssignedID>BK-2026-001</ram:SellerAssignedID>
                <ram:Name>Technical handbook "ERP Best Practices"</ram:Name>
            </ram:SpecifiedTradeProduct>
        </ram:IncludedSupplyChainTradeLineItem>

        <!-- Line item 2 (19%) -->
        <ram:IncludedSupplyChainTradeLineItem>
            <ram:AssociatedDocumentLineDocument>
                <ram:LineID>2</ram:LineID>
                <ram:IncludedNote>
                    <ram:Content>Service: implementation services</ram:Content>
                </ram:IncludedNote>
            </ram:AssociatedDocumentLineDocument>

            <ram:SpecifiedSupplyChainTradeAgreement>
                <ram:GrossPriceProductTradePrice>
                    <ram:ChargeAmount currencyID="EUR">60.00</ram:ChargeAmount>
                    <ram:AppliedTradeAllowanceCharge>
                        <ram:ChargeIndicator>
                            <udt:Indicator>false</udt:Indicator>
                        </ram:ChargeIndicator>
                        <ram:ActualAmount currencyID="EUR">0.00</ram:ActualAmount>
                    </ram:AppliedTradeAllowanceCharge>
                </ram:GrossPriceProductTradePrice>
                <ram:NetPriceProductTradePrice>
                    <ram:ChargeAmount currencyID="EUR">60.00</ram:ChargeAmount>
                </ram:NetPriceProductTradePrice>
            </ram:SpecifiedSupplyChainTradeAgreement>

            <ram:SpecifiedSupplyChainTradeDelivery>
                <ram:BilledQuantity unitCode="C62">5.0000</ram:BilledQuantity>
            </ram:SpecifiedSupplyChainTradeDelivery>

            <ram:SpecifiedSupplyChainTradeSettlement>
                <ram:ApplicableTradeTax>
                    <ram:TypeCode>VAT</ram:TypeCode>
                    <ram:ApplicablePercent>19.00</ram:ApplicablePercent>
                    <ram:CategoryCode>S</ram:CategoryCode>
                </ram:ApplicableTradeTax>
                <ram:SpecifiedTradeSettlementMonetarySummation>
                    <ram:LineTotalAmount currencyID="EUR">300.00</ram:LineTotalAmount>
                </ram:SpecifiedTradeSettlementMonetarySummation>
            </ram:SpecifiedSupplyChainTradeSettlement>

            <ram:SpecifiedTradeProduct>
                <ram:SellerAssignedID>SV-IMPL-001</ram:SellerAssignedID>
                <ram:Name>Implementation services (package)</ram:Name>
            </ram:SpecifiedTradeProduct>
        </ram:IncludedSupplyChainTradeLineItem>

    </rsm:SpecifiedSupplyChainTradeTransaction>
</rsm:CrossIndustryDocument>
