This commit is contained in:
Jochen Stärk
2026-05-21 09:03:54 +02:00
parent abf8468958
commit a9b72da265
2 changed files with 8 additions and 6 deletions

View File

@@ -485,12 +485,12 @@ public class ZUGFeRDImporter extends ZUGFeRDInvoiceImporter {
}
final String head = getUTF8();
if (head.contains("<rsm:CrossIndustryDocument") //
|| head.contains("<CrossIndustryDocument") //
|| head.contains("<SCRDMCCBDACIDAMessageStructure") //
|| head.contains("<rsm:SCRDMCCBDACIOMessageStructure")) { //
if (head.contains("CrossIndustryDocument") //
|| head.contains("CrossIndustryDocument") //
|| head.contains("SCRDMCCBDACIDAMessageStructure") //
|| head.contains("SCRDMCCBDACIOMessageStructure")) { //
version = 1;
} else if (head.contains("<rsm:CrossIndustryInvoice")) {
} else if (head.contains("CrossIndustryInvoice")) {
version = 2;
} else {
throw new Exception("ZUGFeRD version could not be determined");