closes #1120
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
=======
|
||||
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
|
||||
- #1108 https://github.com/ZUGFeRD/mustangproject/issues/1108
|
||||
- #1093 #814 upgrade CEN EN16931 Schematron from v1.3.12 to v1.3.15
|
||||
- #1102 Add BasisAmount to CashDiscount.
|
||||
- #1109 Feature fix xml description
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user