Webseiten-Werkzeuge

Benutzer-Werkzeuge


XRechnung Vorlage invoice.xml

Die XML-Datei invoice.xml enthält die Basisdaten einer Rechnung.

Um das Beispiel nicht unnötig aufzublähen und damit unübersichtlich zu machen, wurden bereits einige konstante Daten fest in die XML-Datei eingetragen, wie zum Beispiel Firmenadresse und Bankverbindung. Es ist klar, dass dies bei einer mandanten­fähigen Buchhaltung natürlich auch Tags sind, die mit einem Platzhalter versehen und vom Skript des print2forms-Gateways ausgetauscht werden müssen.

invoice.xml
<?xml version="1.0" encoding="UTF-8"?>
<ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
             xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
             xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
    <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>
    <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
    <cbc:ID>@DocumentID@</cbc:ID>
    <cbc:IssueDate>@IssueDate@</cbc:IssueDate>
    <cbc:DueDate>@DueDate@</cbc:DueDate>
    <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
    <cbc:DocumentCurrencyCode>@currencyID@</cbc:DocumentCurrencyCode>
    <cbc:BuyerReference>@BuyerReference@</cbc:BuyerReference>
    <cac:AccountingSupplierParty>
        <cac:Party>
            <cbc:EndpointID schemeID="EM">muster@lieferant-gmbh.local</cbc:EndpointID>
            <cac:PostalAddress>
                <cbc:StreetName>Lieferweg 21</cbc:StreetName>
                <cbc:CityName>Musterstadt</cbc:CityName>
                <cbc:PostalZone>80345</cbc:PostalZone>
                <cac:Country>
                    <cbc:IdentificationCode>DE</cbc:IdentificationCode>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cbc:CompanyID>DE08700901001234567890</cbc:CompanyID>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>Lieferant GmbH</cbc:RegistrationName>
                <cbc:CompanyID>5 HRB 12345</cbc:CompanyID>
                <cbc:CompanyLegalForm>Amtsgericht Musterstadt, Geschäftsführer: A. Mustermann</cbc:CompanyLegalForm>
            </cac:PartyLegalEntity>
            <cac:Contact>
                <cbc:Name>Buchhaltung</cbc:Name>
                <cbc:Telephone>01234/67890</cbc:Telephone>
                <cbc:ElectronicMail>buchhaltung@lieferant-gmbh.local</cbc:ElectronicMail>
            </cac:Contact>
        </cac:Party>
    </cac:AccountingSupplierParty>
    <cac:AccountingCustomerParty>
        <cac:Party>
            <cbc:EndpointID schemeID="EM">@BuyerEndpointID@</cbc:EndpointID>
            <cac:PostalAddress>
                <cbc:StreetName>@BuyerStreetName@</cbc:StreetName>
                <cbc:CityName>@BuyerCityName@</cbc:CityName>
                <cbc:PostalZone>@BuyerPostcodeCode@</cbc:PostalZone>
                <cac:Country>
                    <cbc:IdentificationCode>DE</cbc:IdentificationCode>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>@BuyerRegistrationName@</cbc:RegistrationName>
            </cac:PartyLegalEntity>
        </cac:Party>
    </cac:AccountingCustomerParty>
    <cac:Delivery>
        <cbc:ActualDeliveryDate>@ActualDeliveryDate@</cbc:ActualDeliveryDate>
    </cac:Delivery>
    <cac:PaymentMeans>
        <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
        <cac:PayeeFinancialAccount>
            <cbc:ID>DE08700901001234567890</cbc:ID>
        </cac:PayeeFinancialAccount>
    </cac:PaymentMeans>
    <cac:PaymentTerms>
      <cbc:Note>@PaymentTerms@</cbc:Note>
    </cac:PaymentTerms>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="@currencyID@">@TaxAmount@</cbc:TaxAmount>
        <cac:TaxSubtotal>
            <cbc:TaxableAmount currencyID="@currencyID@">@TaxableAmount@</cbc:TaxableAmount>
            <cbc:TaxAmount currencyID="@currencyID@">@TaxAmount@</cbc:TaxAmount>
            <cac:TaxCategory>
                <cbc:ID>S</cbc:ID>
                <cbc:Percent>@TaxPercent@</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:TaxCategory>
        </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:LegalMonetaryTotal>
        <cbc:LineExtensionAmount currencyID="@currencyID@">@TaxableAmount@</cbc:LineExtensionAmount>
        <cbc:TaxExclusiveAmount currencyID="@currencyID@">@TaxableAmount@</cbc:TaxExclusiveAmount>
        <cbc:TaxInclusiveAmount currencyID="@currencyID@">@PayableAmount@</cbc:TaxInclusiveAmount>
        <cbc:PayableAmount currencyID="@currencyID@">@PayableAmount@</cbc:PayableAmount>
    </cac:LegalMonetaryTotal>
 
@ITEMS@
</ubl:Invoice>


Hinweise

  • Die Kodierung der Datei ist Unicode UTF-8.
  • Der Platzhalter '@ITEMS@' nahe am Ende der Datei hat eine besondere Funktion. An seiner Stelle werden später die gesamten XML-Daten der einzelnen Rechnungsposten eingefügt.
print2forms/tips/tip92a.txt · Zuletzt geändert: 2024-06-11 17:17 (Externe Bearbeitung)