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

@@ -2,8 +2,10 @@
======= =======
2026-05-13 2026-05-13
- #1108 Regression Issue caused by empty XMP (introduced by #1076)
- #1120 ZUGFeRDImporter fails to extract Version if XML namespace is not exactly <rsm:CrossIndustryInvoice>
(some of the following changes were already part of 2.23.0)
- #1043 Fix percentage-based allowance/charge calculations - #1043 Fix percentage-based allowance/charge calculations
- #1108 https://github.com/ZUGFeRD/mustangproject/issues/1108
- #1093 #814 upgrade CEN EN16931 Schematron from v1.3.12 to v1.3.15 - #1093 #814 upgrade CEN EN16931 Schematron from v1.3.12 to v1.3.15
- #1102 Add BasisAmount to CashDiscount. - #1102 Add BasisAmount to CashDiscount.
- #1109 Feature fix xml description - #1109 Feature fix xml description

View File

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