closes #813
This commit is contained in:
@@ -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
|
||||||
=======
|
=======
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user