<?xml version="1.0" encoding="UTF-8"?>
<rsm:CrossIndustryInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
    xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
    xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
    <rsm:ExchangedDocumentContext>
        <ram:BusinessProcessSpecifiedDocumentContextParameter>
            <ram:ID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</ram:ID>
        </ram:BusinessProcessSpecifiedDocumentContextParameter>
        <ram:GuidelineSpecifiedDocumentContextParameter>
            <ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</ram:ID>
        </ram:GuidelineSpecifiedDocumentContextParameter>
    </rsm:ExchangedDocumentContext>
    <rsm:ExchangedDocument>
        <ram:ID>5926</ram:ID>
        <ram:TypeCode>380</ram:TypeCode>
        <ram:IssueDateTime>
            <udt:DateTimeString format="102">20200625</udt:DateTimeString>
        </ram:IssueDateTime>
        <ram:IncludedNote>
            <ram:Content>Shipping Type: undefiniert</ram:Content>
        </ram:IncludedNote>
    </rsm:ExchangedDocument>
    <rsm:SupplyChainTradeTransaction>
        <ram:IncludedSupplyChainTradeLineItem>
            <ram:AssociatedDocumentLineDocument>
                <ram:LineID>1.0</ram:LineID>
            </ram:AssociatedDocumentLineDocument>
            <ram:SpecifiedTradeProduct>
                <ram:SellerAssignedID>0001</ram:SellerAssignedID>
                <ram:Name>Rechnungsprüfung</ram:Name>
                <ram:Description>
                    EUR</ram:Description>
            </ram:SpecifiedTradeProduct>
            <ram:SpecifiedLineTradeAgreement>
                <ram:NetPriceProductTradePrice>
                    <ram:ChargeAmount>12</ram:ChargeAmount>
                    <ram:BasisQuantity unitCode="E48">1000.00000</ram:BasisQuantity>
                </ram:NetPriceProductTradePrice>
            </ram:SpecifiedLineTradeAgreement>
            <ram:SpecifiedLineTradeDelivery>
                <ram:BilledQuantity unitCode="E48">1.000</ram:BilledQuantity>
            </ram:SpecifiedLineTradeDelivery>
            <ram:SpecifiedLineTradeSettlement>
                <ram:ApplicableTradeTax>
                    <ram:TypeCode>VAT</ram:TypeCode>
                    <ram:CategoryCode>S</ram:CategoryCode>
                    <ram:RateApplicablePercent>19.0</ram:RateApplicablePercent>
                </ram:ApplicableTradeTax>
                <ram:SpecifiedTradeAllowanceCharge>
                    <ram:ChargeIndicator>
                        <udt:Indicator>false</udt:Indicator>
                    </ram:ChargeIndicator>
                    <ram:CalculationPercent>0</ram:CalculationPercent>
                    <ram:BasisAmount>12.00</ram:BasisAmount>
                    <ram:ActualAmount>0</ram:ActualAmount>
                    <?xmute mutator="identity" schematron-valid="cencii:BR-CO-23" id="cii-reason-code-valid"?>
                    <?xmute mutator="empty" schematron-invalid="cencii:BR-CO-23" id="cii-reason-code-empty" description="expected-to-fail: element should not be empty"?>
                    <?xmute mutator="remove" schematron-valid="cencii:BR-CO-23" id="cii-reason-code-removed"?>
                    <ram:ReasonCode>42</ram:ReasonCode>
                    <?xmute mutator="identity" schematron-valid="cencii:BR-CO-23" id="cii-reason-valid"?>
                    <?xmute mutator="empty" schematron-invalid="cencii:BR-CO-23" id="cii-reason-empty" description="expected-to-fail: element should not be empty"?>
                    <ram:Reason>Other bonus</ram:Reason> 
                </ram:SpecifiedTradeAllowanceCharge>
                <ram:SpecifiedTradeSettlementLineMonetarySummation>
                    <ram:LineTotalAmount>0.01</ram:LineTotalAmount>
                </ram:SpecifiedTradeSettlementLineMonetarySummation>
            </ram:SpecifiedLineTradeSettlement>
        </ram:IncludedSupplyChainTradeLineItem>
        <ram:ApplicableHeaderTradeAgreement>
            <ram:BuyerReference>Test2</ram:BuyerReference>
            <ram:SellerTradeParty>
                <ram:Name>Test GmbH</ram:Name>
                <ram:SpecifiedLegalOrganization>
                    <ram:TradingBusinessName>Test GmbH</ram:TradingBusinessName>
                </ram:SpecifiedLegalOrganization>
                <ram:DefinedTradeContact>
                    <ram:PersonName>Max M</ram:PersonName>
                    <ram:TelephoneUniversalCommunication>
                        <ram:CompleteNumber>01234567891011</ram:CompleteNumber>
                    </ram:TelephoneUniversalCommunication>
                    <ram:EmailURIUniversalCommunication>
                        <ram:URIID>Max.m@test.de</ram:URIID>
                    </ram:EmailURIUniversalCommunication>
                </ram:DefinedTradeContact>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>12345</ram:PostcodeCode>
                    <ram:LineOne>Test str 1</ram:LineOne>
                    <ram:CityName>Teststadt</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                    <ram:CountrySubDivisionName>SN</ram:CountrySubDivisionName>
                </ram:PostalTradeAddress>
                <ram:URIUniversalCommunication>
                    <ram:URIID schemeID="EM">rechnungsausgang@test.com</ram:URIID>
                </ram:URIUniversalCommunication>
                <ram:SpecifiedTaxRegistration>
                    <ram:ID schemeID="VA">DE123456789</ram:ID>
                </ram:SpecifiedTaxRegistration>
            </ram:SellerTradeParty>
            <ram:BuyerTradeParty>
                <ram:ID>1000</ram:ID>
                <ram:Name>Test BKK</ram:Name>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>12345</ram:PostcodeCode>
                    <ram:LineOne>Teststadt 1</ram:LineOne>
                    <ram:CityName>Teststadt</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                    <ram:CountrySubDivisionName>BW</ram:CountrySubDivisionName>
                </ram:PostalTradeAddress>
                <ram:URIUniversalCommunication>
                    <ram:URIID schemeID="EM">rechnungseingang@test.com</ram:URIID>
                </ram:URIUniversalCommunication>
            </ram:BuyerTradeParty>
            <ram:SellerTaxRepresentativeTradeParty>
                <ram:Name>Test GmbH</ram:Name>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>13245</ram:PostcodeCode>
                    <ram:LineOne>Teststr 1</ram:LineOne>
                    <ram:CityName>Teststadt</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                    <ram:CountrySubDivisionName>SN</ram:CountrySubDivisionName>
                </ram:PostalTradeAddress>
                <ram:SpecifiedTaxRegistration>
                    <ram:ID schemeID="VA">DE123456789</ram:ID>
                </ram:SpecifiedTaxRegistration>
            </ram:SellerTaxRepresentativeTradeParty>
            <ram:AdditionalReferencedDocument>
                <ram:IssuerAssignedID schemeID="AAJ">:</ram:IssuerAssignedID>
                <ram:TypeCode>130</ram:TypeCode>
            </ram:AdditionalReferencedDocument>
        </ram:ApplicableHeaderTradeAgreement>
        <ram:ApplicableHeaderTradeDelivery>
            <ram:ShipToTradeParty>
                <ram:Name>Test BKK</ram:Name>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>12345</ram:PostcodeCode>
                    <ram:LineOne>Teststr 1</ram:LineOne>
                    <ram:CityName>Teststadt</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                    <ram:CountrySubDivisionName>BW</ram:CountrySubDivisionName>
                </ram:PostalTradeAddress>
            </ram:ShipToTradeParty>
            <ram:ActualDeliverySupplyChainEvent>
                <ram:OccurrenceDateTime>
                    <udt:DateTimeString format="102">20200625</udt:DateTimeString>
                </ram:OccurrenceDateTime>
            </ram:ActualDeliverySupplyChainEvent>
        </ram:ApplicableHeaderTradeDelivery>
        <ram:ApplicableHeaderTradeSettlement>
            <!--
            <ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode>
            -->
            <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
            <ram:SpecifiedTradeSettlementPaymentMeans>
                <ram:TypeCode>30</ram:TypeCode>
                <ram:PayeePartyCreditorFinancialAccount>
                    <ram:IBANID>DE1010101010101010</ram:IBANID>
                    <ram:AccountName>Test GmbH</ram:AccountName>
                </ram:PayeePartyCreditorFinancialAccount>
                <ram:PayeeSpecifiedCreditorFinancialInstitution>
                    <ram:BICID>DEUDDADBUIS</ram:BICID>
                </ram:PayeeSpecifiedCreditorFinancialInstitution>
            </ram:SpecifiedTradeSettlementPaymentMeans>
            <ram:ApplicableTradeTax>
                <ram:CalculatedAmount>0</ram:CalculatedAmount>
                <ram:TypeCode>VAT</ram:TypeCode>
                <ram:BasisAmount>0.01</ram:BasisAmount>
                <ram:CategoryCode>S</ram:CategoryCode>
                <ram:RateApplicablePercent>19.0</ram:RateApplicablePercent>
            </ram:ApplicableTradeTax>
            <ram:SpecifiedTradePaymentTerms>
                <ram:Description>#SKONTO#TAGE=30#PROZENT=0.00#
                </ram:Description>
            </ram:SpecifiedTradePaymentTerms>
            <ram:SpecifiedTradeSettlementHeaderMonetarySummation>
                <ram:LineTotalAmount>0.01</ram:LineTotalAmount>
                <ram:ChargeTotalAmount>0</ram:ChargeTotalAmount>
                <ram:AllowanceTotalAmount>-0</ram:AllowanceTotalAmount>
                <ram:TaxBasisTotalAmount>0.01</ram:TaxBasisTotalAmount>
                <ram:TaxTotalAmount currencyID="EUR">0.0</ram:TaxTotalAmount>
                <ram:GrandTotalAmount>0.01</ram:GrandTotalAmount>
                <ram:DuePayableAmount>0.01</ram:DuePayableAmount>
            </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
        </ram:ApplicableHeaderTradeSettlement>
    </rsm:SupplyChainTradeTransaction>
</rsm:CrossIndustryInvoice>