ZUGFeRDTest: fix error when file is zugferd10
This commit is contained in:
parent
435de76f95
commit
bd03e5b925
@ -131,8 +131,14 @@ Public Class Form1
|
||||
Dim oResult = _zugferd.SerializeZUGFeRDDocument(oDoc)
|
||||
Console.WriteLine()
|
||||
|
||||
Dim oSpecification = oResult.Specification
|
||||
|
||||
If oSpecification = ZUGFeRDInterface.ZUGFERD_SPEC_10 Then
|
||||
oSpecification = ZUGFeRDInterface.ZUGFERD_SPEC_DEFAULT
|
||||
End If
|
||||
|
||||
Dim oPropertyMap = oArgs.PropertyMap.
|
||||
Where(Function(kv) kv.Value.Specification = oResult.Specification).
|
||||
Where(Function(kv) kv.Value.Specification = oSpecification).
|
||||
ToDictionary(Function(kv) kv.Key, Function(kv) kv.Value)
|
||||
|
||||
Dim oResult2 = _zugferd.PropertyValues.CheckPropertyValues(oResult.SchemaObject, oPropertyMap, "test")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user