This commit is contained in:
jstaerk
2025-08-11 09:27:09 +02:00
parent f4a4dd1a33
commit 2454fe7c62
3 changed files with 9 additions and 8 deletions

View File

@@ -2,10 +2,15 @@
======= =======
- #893 Tradeparty globalID is not read from JSON - #893 Tradeparty globalID is not read from JSON
- #902 Tests to use definted TZ (UTC) - #902 Tests to use definted TZ (UTC)
- #905 Parse product level charges/discounts in UBL - #905 Parse product level charges/discounts into JSON
- #869 Import Account Holder returns SellerTradeParty.name instead of AccountHolder - #869 Import Account Holder returns SellerTradeParty.name instead of AccountHolder
- #861 Multiple problems with Product.CountryOfOrigin - #861 Multiple problems with Product.CountryOfOrigin
- #908 Validation: Make clear when embedded file name is wrong - #908 Validation: Make clear when embedded file name is wrong
- #913 downgrade PDF/A errors to warnings
- #821
- #911
- #912
2.18.0 2.18.0
======= =======

View File

@@ -204,10 +204,6 @@ public class ZUGFeRDValidator {
context.clearCustomXML(); context.clearCustomXML();
} }
if ((isPDF) && (!pdfValidity)) {
context.setInvalid();
}
} }
} catch (IrrecoverableValidationError | IOException irx) { } catch (IrrecoverableValidationError | IOException irx) {
LOGGER.info(irx.getMessage()); LOGGER.info(irx.getMessage());
@@ -337,7 +333,7 @@ public class ZUGFeRDValidator {
+ " Signature:" + Signature + " Checksum:" + sha1Checksum + " Profile:" + context.getProfile() + " Signature:" + Signature + " Checksum:" + sha1Checksum + " Profile:" + context.getProfile()
+ " Version:" + context.getGeneration() + " Took:" + duration + "ms Errors:[" + context.getCSVResult() + " Version:" + context.getGeneration() + " Took:" + duration + "ms Errors:[" + context.getCSVResult()
+ "] ErrorIDs: [" + context.getCSVIDResult() + "]" + toBeAppended); + "] ErrorIDs: [" + context.getCSVIDResult() + "]" + toBeAppended);
wasCompletelyValid = ((pdfValidity) && (xmlValidity)); wasCompletelyValid = xmlValidity;
return sw.toString(); return sw.toString();
} }

View File

@@ -31,7 +31,7 @@ public class ZUGFeRDValidatorTest extends ResourceCase {
.isEqualTo("valid"); .isEqualTo("valid");
assertThat(res).valueByXPath("/validation/summary/@status") assertThat(res).valueByXPath("/validation/summary/@status")
.isEqualTo("invalid"); .isEqualTo("valid");
tempFile = getResourceAsFile("validAvoir_FR_type380_BASICWL.pdf"); tempFile = getResourceAsFile("validAvoir_FR_type380_BASICWL.pdf");
@@ -103,7 +103,7 @@ public class ZUGFeRDValidatorTest extends ResourceCase {
.isEqualTo("valid"); .isEqualTo("valid");
assertThat(res).valueByXPath("/validation/summary/@status") assertThat(res).valueByXPath("/validation/summary/@status")
.isEqualTo("invalid"); .isEqualTo("valid");
fileBytes = getResourceAsByteArray("validAvoir_FR_type380_BASICWL.pdf"); fileBytes = getResourceAsByteArray("validAvoir_FR_type380_BASICWL.pdf");