1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #8997 from LarsK1/v5-develop

Feature: Add new ZuGFerD standards
This commit is contained in:
David Bomba 2023-11-28 07:24:53 +11:00 committed by GitHub
commit de2a5ef530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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":

View File

@ -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,