-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #469 from mkilian/xr-val-schema-en16931
Enable EN16931 schema validation for XRechnung.
- Loading branch information
Showing
3 changed files
with
222 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rsm:CrossIndustryInvoice 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" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100 ../../../schemas/UN_CEFACT/CrossIndustryInvoice_100pD16B.xsd"> | ||
<rsm:ExchangedDocumentContext> | ||
<ram:GuidelineSpecifiedDocumentContextParameter> | ||
<ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.0</ram:ID> | ||
</ram:GuidelineSpecifiedDocumentContextParameter> | ||
</rsm:ExchangedDocumentContext> | ||
<rsm:ExchangedDocument> | ||
<ram:ID>1234567</ram:ID> | ||
<ram:TypeCode>380</ram:TypeCode> | ||
<ram:IncludedNote> | ||
<ram:Content>Invoice Note Description</ram:Content> | ||
<ram:SubjectCode>AAC</ram:SubjectCode> | ||
</ram:IncludedNote> | ||
<ram:IssueDateTime> | ||
<udt:DateTimeString format="102">20180413</udt:DateTimeString> | ||
</ram:IssueDateTime> | ||
</rsm:ExchangedDocument> | ||
<rsm:SupplyChainTradeTransaction> | ||
<ram:IncludedSupplyChainTradeLineItem> | ||
<ram:AssociatedDocumentLineDocument> | ||
<ram:LineID>1</ram:LineID> | ||
</ram:AssociatedDocumentLineDocument> | ||
<ram:SpecifiedTradeProduct> | ||
<ram:Name>Beratung</ram:Name> | ||
</ram:SpecifiedTradeProduct> | ||
<ram:SpecifiedLineTradeAgreement> | ||
<ram:NetPriceProductTradePrice> | ||
<ram:ChargeAmount>143.75</ram:ChargeAmount> | ||
</ram:NetPriceProductTradePrice> | ||
</ram:SpecifiedLineTradeAgreement> | ||
<ram:SpecifiedLineTradeDelivery> | ||
<ram:BilledQuantity unitCode="XPP">30</ram:BilledQuantity> | ||
</ram:SpecifiedLineTradeDelivery> | ||
<ram:SpecifiedLineTradeSettlement> | ||
<ram:ApplicableTradeTax> | ||
<ram:TypeCode>VAT</ram:TypeCode> | ||
<ram:CategoryCode>S</ram:CategoryCode> | ||
<ram:RateApplicablePercent>19</ram:RateApplicablePercent> | ||
</ram:ApplicableTradeTax> | ||
<ram:SpecifiedTradeSettlementLineMonetarySummation> | ||
<ram:LineTotalAmount>4743.75</ram:LineTotalAmount> | ||
</ram:SpecifiedTradeSettlementLineMonetarySummation> | ||
</ram:SpecifiedLineTradeSettlement> | ||
</ram:IncludedSupplyChainTradeLineItem> | ||
<ram:IncludedSupplyChainTradeLineItem> | ||
<ram:AssociatedDocumentLineDocument> | ||
<ram:LineID>2</ram:LineID> | ||
</ram:AssociatedDocumentLineDocument> | ||
<ram:SpecifiedTradeProduct> | ||
<ram:Name>Beratung</ram:Name> | ||
</ram:SpecifiedTradeProduct> | ||
<ram:SpecifiedLineTradeAgreement> | ||
<ram:NetPriceProductTradePrice> | ||
<ram:ChargeAmount>143.75</ram:ChargeAmount> | ||
</ram:NetPriceProductTradePrice> | ||
</ram:SpecifiedLineTradeAgreement> | ||
<ram:SpecifiedLineTradeDelivery> | ||
<ram:BilledQuantity unitCode="XPP">42</ram:BilledQuantity> | ||
</ram:SpecifiedLineTradeDelivery> | ||
<ram:SpecifiedLineTradeSettlement> | ||
<ram:ApplicableTradeTax> | ||
<ram:TypeCode>VAT</ram:TypeCode> | ||
<ram:CategoryCode>S</ram:CategoryCode> | ||
<ram:RateApplicablePercent>19</ram:RateApplicablePercent> | ||
</ram:ApplicableTradeTax> | ||
<ram:SpecifiedTradeSettlementLineMonetarySummation> | ||
<ram:LineTotalAmount>6037.5</ram:LineTotalAmount> | ||
</ram:SpecifiedTradeSettlementLineMonetarySummation> | ||
</ram:SpecifiedLineTradeSettlement> | ||
</ram:IncludedSupplyChainTradeLineItem> | ||
<ram:ApplicableHeaderTradeAgreement> | ||
<ram:BuyerReference>90000000-03083-12</ram:BuyerReference> | ||
<ram:SellerTradeParty> | ||
<ram:Name>[Seller name]</ram:Name> | ||
<ram:SpecifiedLegalOrganization> | ||
<ram:ID>GmbH</ram:ID> | ||
</ram:SpecifiedLegalOrganization> | ||
<ram:DefinedTradeContact> | ||
<ram:PersonName>Tim Tester</ram:PersonName> | ||
<ram:TelephoneUniversalCommunication> | ||
<ram:CompleteNumber>012 3456789</ram:CompleteNumber> | ||
</ram:TelephoneUniversalCommunication> | ||
<ram:EmailURIUniversalCommunication> | ||
<ram:URIID>tim.tester@test.com</ram:URIID> | ||
</ram:EmailURIUniversalCommunication> | ||
</ram:DefinedTradeContact> | ||
<ram:PostalTradeAddress> | ||
<ram:PostcodeCode>12345</ram:PostcodeCode> | ||
<ram:CityName>[Seller city]</ram:CityName> | ||
<ram:CountryID>DE</ram:CountryID> | ||
</ram:PostalTradeAddress> | ||
<ram:SpecifiedTaxRegistration> | ||
<ram:ID schemeID="VA">ATU123456789</ram:ID> | ||
</ram:SpecifiedTaxRegistration> | ||
</ram:SellerTradeParty> | ||
<ram:BuyerTradeParty> | ||
<ram:ID>138</ram:ID> | ||
<ram:Name>[Buyer name]</ram:Name> | ||
<ram:SpecifiedLegalOrganization> | ||
<ram:ID>GmbH</ram:ID> | ||
</ram:SpecifiedLegalOrganization> | ||
<ram:DefinedTradeContact> | ||
<ram:PersonName>Tina Tester</ram:PersonName> | ||
<ram:TelephoneUniversalCommunication> | ||
<ram:CompleteNumber>0800 123456</ram:CompleteNumber> | ||
</ram:TelephoneUniversalCommunication> | ||
<ram:EmailURIUniversalCommunication> | ||
<ram:URIID>tester@test.de</ram:URIID> | ||
</ram:EmailURIUniversalCommunication> | ||
</ram:DefinedTradeContact> | ||
<ram:PostalTradeAddress> | ||
<ram:PostcodeCode>98765</ram:PostcodeCode> | ||
<ram:CityName>[Buyer city]</ram:CityName> | ||
<ram:CountryID>DE</ram:CountryID> | ||
</ram:PostalTradeAddress> | ||
<ram:SpecifiedTaxRegistration> | ||
<ram:ID schemeID="VA">DE12345ABC</ram:ID> | ||
</ram:SpecifiedTaxRegistration> | ||
</ram:BuyerTradeParty> | ||
<ram:SellerTaxRepresentativeTradeParty> | ||
<ram:Name>[Seller tax representative name]</ram:Name> | ||
<ram:PostalTradeAddress> | ||
<ram:CountryID>DE</ram:CountryID> | ||
</ram:PostalTradeAddress> | ||
<ram:SpecifiedTaxRegistration> | ||
<ram:ID schemeID="VA">DE124567</ram:ID> | ||
</ram:SpecifiedTaxRegistration> | ||
</ram:SellerTaxRepresentativeTradeParty> | ||
<ram:SellerOrderReferencedDocument> | ||
<ram:IssuerAssignedID>ABC123456789</ram:IssuerAssignedID> | ||
</ram:SellerOrderReferencedDocument> | ||
<ram:BuyerOrderReferencedDocument> | ||
<ram:IssuerAssignedID>65002278</ram:IssuerAssignedID> | ||
</ram:BuyerOrderReferencedDocument> | ||
</ram:ApplicableHeaderTradeAgreement> | ||
<ram:ApplicableHeaderTradeDelivery> | ||
<ram:ShipToTradeParty> | ||
<ram:ID>68</ram:ID> | ||
<ram:Name>[Deliver to party name]</ram:Name> | ||
<ram:PostalTradeAddress> | ||
<ram:PostcodeCode>98765</ram:PostcodeCode> | ||
<ram:LineOne>[Deliver to street]</ram:LineOne> | ||
<ram:LineTwo>4. OG</ram:LineTwo> | ||
<ram:CityName>[Deliver to city]</ram:CityName> | ||
<ram:CountryID>DE</ram:CountryID> | ||
<ram:CountrySubDivisionName>Bayern</ram:CountrySubDivisionName> | ||
</ram:PostalTradeAddress> | ||
</ram:ShipToTradeParty> | ||
<ram:ActualDeliverySupplyChainEvent> | ||
<ram:OccurrenceDateTime> | ||
<udt:DateTimeString format="102">20180413</udt:DateTimeString> | ||
</ram:OccurrenceDateTime> | ||
</ram:ActualDeliverySupplyChainEvent> | ||
</ram:ApplicableHeaderTradeDelivery> | ||
<ram:ApplicableHeaderTradeSettlement> | ||
<ram:PaymentReference>Deb. 12345 / Fact. 9876543</ram:PaymentReference> | ||
<ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode> | ||
<ram:PayeeTradeParty> | ||
<ram:ID>74</ram:ID> | ||
<ram:Name>[Payee name]</ram:Name> | ||
</ram:PayeeTradeParty> | ||
<ram:SpecifiedTradeSettlementPaymentMeans> | ||
<ram:TypeCode>30</ram:TypeCode> | ||
<ram:PayeePartyCreditorFinancialAccount> | ||
<ram:IBANID>DE12100200000123456878</ram:IBANID> | ||
</ram:PayeePartyCreditorFinancialAccount> | ||
</ram:SpecifiedTradeSettlementPaymentMeans> | ||
<ram:ApplicableTradeTax> | ||
<ram:CalculatedAmount>2048.44</ram:CalculatedAmount> | ||
<ram:TypeCode>VAT</ram:TypeCode> | ||
<ram:BasisAmount>10781.25</ram:BasisAmount> | ||
<ram:CategoryCode>S</ram:CategoryCode> | ||
<ram:RateApplicablePercent>19</ram:RateApplicablePercent> | ||
</ram:ApplicableTradeTax> | ||
<ram:BillingSpecifiedPeriod> | ||
<ram:StartDateTime> | ||
<udt:DateTimeString format="102">20180413</udt:DateTimeString> | ||
</ram:StartDateTime> | ||
<ram:EndDateTime> | ||
<udt:DateTimeString format="102">20180413</udt:DateTimeString> | ||
</ram:EndDateTime> | ||
</ram:BillingSpecifiedPeriod> | ||
<ram:SpecifiedTradePaymentTerms> | ||
<ram:DueDateDateTime> | ||
<udt:DateTimeString format="102">20180413</udt:DateTimeString> | ||
</ram:DueDateDateTime> | ||
</ram:SpecifiedTradePaymentTerms> | ||
<ram:SpecifiedTradeSettlementHeaderMonetarySummation> | ||
<ram:LineTotalAmount>10781.25</ram:LineTotalAmount> | ||
<ram:TaxBasisTotalAmount>10781.25</ram:TaxBasisTotalAmount> | ||
<ram:TaxTotalAmount currencyID="EUR">2048.44</ram:TaxTotalAmount> | ||
<ram:GrandTotalAmount>12829.69</ram:GrandTotalAmount> | ||
<ram:DuePayableAmount>12829.69</ram:DuePayableAmount> | ||
</ram:SpecifiedTradeSettlementHeaderMonetarySummation> | ||
</ram:ApplicableHeaderTradeSettlement> | ||
</rsm:SupplyChainTradeTransaction> | ||
</rsm:CrossIndustryInvoice> |