ZUGFeRDService & ZUGFeRDRESTService:
Neuer Config-Schalter "AllowEBInterface"
This commit is contained in:
@@ -74,5 +74,7 @@
|
||||
Public Property AllowZugferd23x As Boolean = True
|
||||
|
||||
Public Property AllowPeppolBISBill3x As Boolean = False
|
||||
|
||||
Public Property AllowEBInterface As Boolean = False
|
||||
End Class
|
||||
End Class
|
||||
|
||||
@@ -54,6 +54,7 @@ Public Class ThreadRunner
|
||||
.AllowZugferd2x = _config.Config.Custom.AllowZugferd2x,
|
||||
.AllowZugferd23x = _config.Config.Custom.AllowZugferd23x,
|
||||
.AllowPeppolBISBill3x = _config.Config.Custom.AllowPeppolBISBill3x,
|
||||
.AllowEBInterface = _config.Config.Custom.AllowEBInterface,
|
||||
.RejectionTemplateId = _config.Config.Custom.RejectionTemplateId,
|
||||
.GDPictureVersion = _config.Config.Custom.GDPictureVersion
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
|
||||
public bool AllowPeppolBISBill3x { get; set; } = false;
|
||||
|
||||
public bool AllowEBInterface { get; set; } = false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ namespace ZUGFeRDRESTService.Controllers
|
||||
private bool _AllowZugferd23x;
|
||||
private bool _AllowZugferd10;
|
||||
private bool _AllowPeppolBISBill3x;
|
||||
private bool _AllowEBInterface;
|
||||
|
||||
private string _GDPictureVersion;
|
||||
|
||||
@@ -104,7 +105,8 @@ namespace ZUGFeRDRESTService.Controllers
|
||||
AllowZugferd_1_0_Schema = _AllowZugferd10,
|
||||
AllowZugferd_2_x_Schema = _AllowZugferd2x,
|
||||
AllowZugferd_2_3_x_Schema = _AllowZugferd23x,
|
||||
AllowPeppol_3_x_Schema = _AllowPeppolBISBill3x
|
||||
AllowPeppol_3_x_Schema = _AllowPeppolBISBill3x,
|
||||
AllowEBInterface_Schema = _AllowEBInterface,
|
||||
});
|
||||
_props = new PropertyValues(_logConfig);
|
||||
|
||||
@@ -188,6 +190,12 @@ namespace ZUGFeRDRESTService.Controllers
|
||||
_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"];
|
||||
if (string.IsNullOrEmpty(_GDPictureVersion))
|
||||
{
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
"AllowZugferd23x": true,
|
||||
"AllowFacturX": true,
|
||||
"AllowXRechnung": true,
|
||||
"AllowPeppolBISBill3x": true
|
||||
"AllowPeppolBISBill3x": true,
|
||||
"AllowEBInterface": true
|
||||
},
|
||||
"GDPictureVersion": "",
|
||||
"MaxFileSizeInMegabytes": 25
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
"AllowZugferd23x": false,
|
||||
"AllowFacturX": false,
|
||||
"AllowXRechnung": false,
|
||||
"AllowPeppolBISBill3x": false
|
||||
"AllowPeppolBISBill3x": false,
|
||||
"AllowEBInterface": false
|
||||
},
|
||||
"GDPictureVersion": "",
|
||||
"MaxFileSizeInMegabytes": 25
|
||||
|
||||
Reference in New Issue
Block a user