ZUGFeRDService & ZUGFeRDRESTService:

Neuer Config-Schalter "AllowEBInterface"
This commit is contained in:
2026-09-07 17:03:31 +02:00
parent 0f9e7c55ec
commit a5773e9b8f
6 changed files with 18 additions and 3 deletions

View File

@@ -74,5 +74,7 @@
Public Property AllowZugferd23x As Boolean = True Public Property AllowZugferd23x As Boolean = True
Public Property AllowPeppolBISBill3x As Boolean = False Public Property AllowPeppolBISBill3x As Boolean = False
Public Property AllowEBInterface As Boolean = False
End Class End Class
End Class End Class

View File

@@ -54,6 +54,7 @@ Public Class ThreadRunner
.AllowZugferd2x = _config.Config.Custom.AllowZugferd2x, .AllowZugferd2x = _config.Config.Custom.AllowZugferd2x,
.AllowZugferd23x = _config.Config.Custom.AllowZugferd23x, .AllowZugferd23x = _config.Config.Custom.AllowZugferd23x,
.AllowPeppolBISBill3x = _config.Config.Custom.AllowPeppolBISBill3x, .AllowPeppolBISBill3x = _config.Config.Custom.AllowPeppolBISBill3x,
.AllowEBInterface = _config.Config.Custom.AllowEBInterface,
.RejectionTemplateId = _config.Config.Custom.RejectionTemplateId, .RejectionTemplateId = _config.Config.Custom.RejectionTemplateId,
.GDPictureVersion = _config.Config.Custom.GDPictureVersion .GDPictureVersion = _config.Config.Custom.GDPictureVersion
} }

View File

@@ -29,6 +29,8 @@
public bool AllowPeppolBISBill3x { get; set; } = false; public bool AllowPeppolBISBill3x { get; set; } = false;
public bool AllowEBInterface { get; set; } = false;
} }
} }

View File

@@ -80,6 +80,7 @@ namespace ZUGFeRDRESTService.Controllers
private bool _AllowZugferd23x; private bool _AllowZugferd23x;
private bool _AllowZugferd10; private bool _AllowZugferd10;
private bool _AllowPeppolBISBill3x; private bool _AllowPeppolBISBill3x;
private bool _AllowEBInterface;
private string _GDPictureVersion; private string _GDPictureVersion;
@@ -104,7 +105,8 @@ namespace ZUGFeRDRESTService.Controllers
AllowZugferd_1_0_Schema = _AllowZugferd10, AllowZugferd_1_0_Schema = _AllowZugferd10,
AllowZugferd_2_x_Schema = _AllowZugferd2x, AllowZugferd_2_x_Schema = _AllowZugferd2x,
AllowZugferd_2_3_x_Schema = _AllowZugferd23x, AllowZugferd_2_3_x_Schema = _AllowZugferd23x,
AllowPeppol_3_x_Schema = _AllowPeppolBISBill3x AllowPeppol_3_x_Schema = _AllowPeppolBISBill3x,
AllowEBInterface_Schema = _AllowEBInterface,
}); });
_props = new PropertyValues(_logConfig); _props = new PropertyValues(_logConfig);
@@ -188,6 +190,12 @@ namespace ZUGFeRDRESTService.Controllers
_AllowPeppolBISBill3x = false; _AllowPeppolBISBill3x = false;
} }
if (!bool.TryParse(oZugferdConfig["AllowEBInterface"], out _AllowEBInterface))
{
_logger.Info("Configuration AllowEBInterface was not set. Using default value [{0}]", false);
_AllowEBInterface = false;
}
_GDPictureVersion = oAppConfig["GDPictureVersion"]; _GDPictureVersion = oAppConfig["GDPictureVersion"];
if (string.IsNullOrEmpty(_GDPictureVersion)) if (string.IsNullOrEmpty(_GDPictureVersion))
{ {

View File

@@ -24,7 +24,8 @@
"AllowZugferd23x": true, "AllowZugferd23x": true,
"AllowFacturX": true, "AllowFacturX": true,
"AllowXRechnung": true, "AllowXRechnung": true,
"AllowPeppolBISBill3x": true "AllowPeppolBISBill3x": true,
"AllowEBInterface": true
}, },
"GDPictureVersion": "", "GDPictureVersion": "",
"MaxFileSizeInMegabytes": 25 "MaxFileSizeInMegabytes": 25

View File

@@ -24,7 +24,8 @@
"AllowZugferd23x": false, "AllowZugferd23x": false,
"AllowFacturX": false, "AllowFacturX": false,
"AllowXRechnung": false, "AllowXRechnung": false,
"AllowPeppolBISBill3x": false "AllowPeppolBISBill3x": false,
"AllowEBInterface": false
}, },
"GDPictureVersion": "", "GDPictureVersion": "",
"MaxFileSizeInMegabytes": 25 "MaxFileSizeInMegabytes": 25