Modules.Jobs & Modules.Interface - Spezifikation abschaltbar machen + Debug-logs
This commit is contained in:
@@ -68,9 +68,9 @@ Public Class ZUGFeRDInterface
|
|||||||
Public Class ZugferdOptions
|
Public Class ZugferdOptions
|
||||||
Public Property AllowFacturX_Filename As Boolean = True
|
Public Property AllowFacturX_Filename As Boolean = True
|
||||||
Public Property AllowXRechnung_Filename As Boolean = True
|
Public Property AllowXRechnung_Filename As Boolean = True
|
||||||
Public Property AllowZugferd_1_0_Schema As Boolean = True
|
Public Property AllowZugferd_1_0_Schema As Boolean = False
|
||||||
Public Property AllowZugferd_2_x_Schema As Boolean = True
|
Public Property AllowZugferd_2_x_Schema As Boolean = False
|
||||||
Public Property AllowZugferd_2_3_x_Schema As Boolean = True
|
Public Property AllowZugferd_2_3_x_Schema As Boolean = False
|
||||||
Public Property AllowPeppol_3_x_Schema As Boolean = False
|
Public Property AllowPeppol_3_x_Schema As Boolean = False
|
||||||
Public Property AllowEBInterface_Schema As Boolean = False
|
Public Property AllowEBInterface_Schema As Boolean = False
|
||||||
End Class
|
End Class
|
||||||
@@ -111,6 +111,7 @@ Public Class ZUGFeRDInterface
|
|||||||
_Options = New ZugferdOptions()
|
_Options = New ZugferdOptions()
|
||||||
Else
|
Else
|
||||||
_Options = pOptions
|
_Options = pOptions
|
||||||
|
LogSpecificationOptions(_Options)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ApplyFilenameOptions(_Options)
|
ApplyFilenameOptions(_Options)
|
||||||
@@ -127,6 +128,16 @@ Public Class ZUGFeRDInterface
|
|||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LogSpecificationOptions(options As ZugferdOptions)
|
||||||
|
_logger.Debug("AllowFacturX_Filename has Value [{0}]",options.AllowFacturX_Filename)
|
||||||
|
_logger.Debug("AllowXRechnung_Filename has Value [{0}]",options.AllowXRechnung_Filename)
|
||||||
|
_logger.Debug("AllowZugferd_1_0_Schema has Value [{0}]",options.AllowZugferd_1_0_Schema)
|
||||||
|
_logger.Debug("AllowZugferd_2_x_Schema has Value [{0}]",options.AllowZugferd_2_x_Schema)
|
||||||
|
_logger.Debug("AllowZugferd_2_3_x_Schema has Value [{0}]",options.AllowZugferd_2_3_x_Schema)
|
||||||
|
_logger.Debug("AllowPeppol_3_x_Schema has Value [{0}]",options.AllowPeppol_3_x_Schema)
|
||||||
|
_logger.Debug("AllowEBInterface_Schema has Value [{0}]", options.AllowEBInterface_Schema)
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub ApplyFilenameOptions(pOptions As ZugferdOptions)
|
Private Sub ApplyFilenameOptions(pOptions As ZugferdOptions)
|
||||||
Dim oAllowedFilenames As List(Of String) = ValidFilenames
|
Dim oAllowedFilenames As List(Of String) = ValidFilenames
|
||||||
|
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ Public Class WorkerArgs
|
|||||||
' Feature Flags
|
' Feature Flags
|
||||||
Public AllowFacturX As Boolean = True
|
Public AllowFacturX As Boolean = True
|
||||||
Public AllowXRechnung As Boolean = True
|
Public AllowXRechnung As Boolean = True
|
||||||
Public AllowZugferd10 As Boolean = True
|
Public AllowZugferd10 As Boolean = False
|
||||||
Public AllowZugferd2x As Boolean = True
|
Public AllowZugferd2x As Boolean = False
|
||||||
Public AllowZugferd23x As Boolean = True
|
Public AllowZugferd23x As Boolean = False
|
||||||
Public AllowPeppolBISBill3x As Boolean = False
|
Public AllowPeppolBISBill3x As Boolean = False
|
||||||
Public AllowEBInterface As Boolean = False
|
Public AllowEBInterface As Boolean = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user