From 0388f4b7ca1be3f882066a61b5db316445771afc Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Mon, 27 Nov 2023 18:19:52 +0100 Subject: [PATCH 1/2] Add new X-Invoice standards --- app/Jobs/Invoice/CreateEInvoice.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Jobs/Invoice/CreateEInvoice.php b/app/Jobs/Invoice/CreateEInvoice.php index b3f64776ea38..f9bab61329d5 100644 --- a/app/Jobs/Invoice/CreateEInvoice.php +++ b/app/Jobs/Invoice/CreateEInvoice.php @@ -56,6 +56,8 @@ class CreateEInvoice implements ShouldQueue switch ($e_invoice_type) { case "EN16931": + case "XInvoice_3_0": + case "XInvoice_2_3": case "XInvoice_2_2": case "XInvoice_2_1": case "XInvoice_2_0": From 8ca3dc2dff1d07afeba58e494ead1e86b137d1f5 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Mon, 27 Nov 2023 18:21:19 +0100 Subject: [PATCH 2/2] Update ZugferdEInvoice.php --- app/Services/Invoice/EInvoice/ZugferdEInvoice.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/Invoice/EInvoice/ZugferdEInvoice.php b/app/Services/Invoice/EInvoice/ZugferdEInvoice.php index 5d7b938d9629..aa10995cec9c 100644 --- a/app/Services/Invoice/EInvoice/ZugferdEInvoice.php +++ b/app/Services/Invoice/EInvoice/ZugferdEInvoice.php @@ -34,6 +34,8 @@ class ZugferdEInvoice extends AbstractService $profile = $client->getSetting('e_invoice_type'); $profile = match ($profile) { + "XInvoice_3_0" => ZugferdProfiles::PROFILE_XRECHNUNG_3, + "XInvoice_2_3" => ZugferdProfiles::PROFILE_XRECHNUNG_2_3, "XInvoice_2_2" => ZugferdProfiles::PROFILE_XRECHNUNG_2_2, "XInvoice_2_1" => ZugferdProfiles::PROFILE_XRECHNUNG_2_1, "XInvoice_2_0" => ZugferdProfiles::PROFILE_XRECHNUNG_2,