From 45095096991d17f75c9665b9f6ef945ee29b10d9 Mon Sep 17 00:00:00 2001 From: Ben Dangelmayr Date: Fri, 3 Jun 2022 13:38:42 +0200 Subject: [PATCH] Added minimum and basic-wl schema,tests completing --- drafthorse/schema/FACTUR-X_BASIC-WL.xsd | 20 + ...ct_data_standard_QualifiedDataType_100.xsd | 792 ++++++++++++++++++ ...AggregateBusinessInformationEntity_100.xsd | 196 +++++ ..._data_standard_UnqualifiedDataType_100.xsd | 54 ++ drafthorse/schema/FACTUR-X_MINIMUM.xsd | 20 + ...ct_data_standard_QualifiedDataType_100.xsd | 511 +++++++++++ ...AggregateBusinessInformationEntity_100.xsd | 86 ++ ..._data_standard_UnqualifiedDataType_100.xsd | 39 + .../samples/zugferd_2p1_BASIC-WL_Einfach.xml | 176 ++++ .../zugferd_2p1_MINIMUM_Buchungshilfe.xml | 130 +++ .../samples/zugferd_2p1_MINIMUM_Rechnung.xml | 130 +++ 11 files changed, 2154 insertions(+) create mode 100644 drafthorse/schema/FACTUR-X_BASIC-WL.xsd create mode 100644 drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd create mode 100644 drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd create mode 100644 drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd create mode 100644 drafthorse/schema/FACTUR-X_MINIMUM.xsd create mode 100644 drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd create mode 100644 drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd create mode 100644 drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd create mode 100644 tests/samples/zugferd_2p1_BASIC-WL_Einfach.xml create mode 100644 tests/samples/zugferd_2p1_MINIMUM_Buchungshilfe.xml create mode 100644 tests/samples/zugferd_2p1_MINIMUM_Rechnung.xml diff --git a/drafthorse/schema/FACTUR-X_BASIC-WL.xsd b/drafthorse/schema/FACTUR-X_BASIC-WL.xsd new file mode 100644 index 0000000..c67a349 --- /dev/null +++ b/drafthorse/schema/FACTUR-X_BASIC-WL.xsd @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + diff --git a/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd b/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd new file mode 100644 index 0000000..f8c3f63 --- /dev/null +++ b/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd @@ -0,0 +1,792 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd b/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd new file mode 100644 index 0000000..1570deb --- /dev/null +++ b/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd b/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd new file mode 100644 index 0000000..3e2545e --- /dev/null +++ b/drafthorse/schema/FACTUR-X_BASIC-WL_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/drafthorse/schema/FACTUR-X_MINIMUM.xsd b/drafthorse/schema/FACTUR-X_MINIMUM.xsd new file mode 100644 index 0000000..e51acb3 --- /dev/null +++ b/drafthorse/schema/FACTUR-X_MINIMUM.xsd @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + diff --git a/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd b/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd new file mode 100644 index 0000000..1209363 --- /dev/null +++ b/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_QualifiedDataType_100.xsd @@ -0,0 +1,511 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd b/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd new file mode 100644 index 0000000..153cdbe --- /dev/null +++ b/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_ReusableAggregateBusinessInformationEntity_100.xsd @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd b/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd new file mode 100644 index 0000000..45a5fa0 --- /dev/null +++ b/drafthorse/schema/FACTUR-X_MINIMUM_urn_un_unece_uncefact_data_standard_UnqualifiedDataType_100.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/samples/zugferd_2p1_BASIC-WL_Einfach.xml b/tests/samples/zugferd_2p1_BASIC-WL_Einfach.xml new file mode 100644 index 0000000..6b3431b --- /dev/null +++ b/tests/samples/zugferd_2p1_BASIC-WL_Einfach.xml @@ -0,0 +1,176 @@ + + + + + + + + + + urn:factur-x.eu:1p0:basicwl + + + + TX-471102 + 380 + + 20191030 + + + Rechnung gemäß Taxifahrt vom 29.10.2019 + + + Taxiunternehmen TX GmbH +Lieferantenstraße 20 +10369 Berlin +Deutschland +Geschäftsführer: Hans Mustermann +Handelsregisternummer: H A 123 + + + + Unsere GLN: 4000001123452 +Ihre GLN: 4000001987658 +Ihre Kundennummer: GE2020211 + + + + + + + Taxiunternehmen TX GmbH + + 10369 + Lieferantenstraße 20 + Berlin + DE + + + DE123456789 + + + + Taxi-Gast AG Mitte + + 13351 + Hans Mustermann + Kundenstraße 15 + Berlin + DE + + + + + + + 20191029 + + + + + EUR + + 1.18 + VAT + 16.90 + S + 7 + + + + 20191129 + + + + 16.90 + 0.00 + 0.00 + 16.90 + 1.18 + 18.08 + 18.08 + + + + \ No newline at end of file diff --git a/tests/samples/zugferd_2p1_MINIMUM_Buchungshilfe.xml b/tests/samples/zugferd_2p1_MINIMUM_Buchungshilfe.xml new file mode 100644 index 0000000..42427e6 --- /dev/null +++ b/tests/samples/zugferd_2p1_MINIMUM_Buchungshilfe.xml @@ -0,0 +1,130 @@ + + + + + + + + + + urn:factur-x.eu:1p0:minimum + + + + 471102 + 751 + + 20200305 + + + + + + Lieferant GmbH + + DE + + + 201/113/40209 + + + DE123456789 + + + + Kunden AG Mitte + + + + + EUR + + 198.00 + 37.62 + 235.62 + 235.62 + + + + \ No newline at end of file diff --git a/tests/samples/zugferd_2p1_MINIMUM_Rechnung.xml b/tests/samples/zugferd_2p1_MINIMUM_Rechnung.xml new file mode 100644 index 0000000..06f7699 --- /dev/null +++ b/tests/samples/zugferd_2p1_MINIMUM_Rechnung.xml @@ -0,0 +1,130 @@ + + + + + + + + + + urn:factur-x.eu:1p0:minimum + + + + 471102 + 380 + + 20200305 + + + + + + Lieferant GmbH + + DE + + + 201/113/40209 + + + DE123456789 + + + + Kunden AG Frankreich + + + + + EUR + + 198.00 + 37.62 + 235.62 + 235.62 + + + + \ No newline at end of file -- 2.47.3