fixed document import and new test version

This commit is contained in:
Daniel Schick 2022-10-21 08:25:24 +02:00
parent bb5de64cab
commit f593d66333
2 changed files with 25 additions and 22 deletions

View File

@ -36,7 +36,7 @@
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.html</WebPage>
<ApplicationRevision>9</ApplicationRevision>
<ApplicationRevision>10</ApplicationRevision>
<ApplicationVersion>7.5.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>

View File

@ -2487,7 +2487,13 @@ namespace ENI2.Excel
byte? result = DakosyUtil.ParseDocumentType(documentType);
canceled = false;
if (!documentType.IsNullOrEmpty() && !result.HasValue)
if (!result.HasValue)
{
if (documentType.IsNullOrEmpty())
{
result = 5; // OTHER_LEGAL_IDENTITY_DOCUMENT (CH, 17.10.22)
}
else
{
// special treatment / callback
if (_documentTypeImportDict.ContainsKey(documentType))
@ -2514,9 +2520,6 @@ namespace ENI2.Excel
}
}
}
else
{
result = 5; // OTHER_LEGAL_IDENTITY_DOCUMENT (CH, 17.10.22)
}
return result;