diff --git a/History.md b/History.md index ffa54fec..fdf08f10 100644 --- a/History.md +++ b/History.md @@ -1,12 +1,24 @@ -- 990 -- 859 -- 992 -- 994 -- 999 -- 997 -- 1000 -- deprecate itemTotalAllowances instead of itemAllowances oder itemCharges -- #1011 + +2.22.0 +======= +2026-02-04 + +- #990 Fix empty ValidationResult when XMP metadata contains invalid XML characters +- #859 SpecifiedTradePaymentTerms doppelt in der XML ab Version 2.16.5 +- #992 fix typo +- #253/#994 add DeliveryNoteReferencedDocument for import and export +- #999 Write RateApplicablePercent on head also for tax free +- #997 CategoryCode O Need VAT rate in header breakdown (BT-119) but MUST omit line VAT rate (BT-152) +- #1000 Support ItemSellerTradeParty at line level (Factur-X / ZUGFeRD EXTENDED) for French municipalities subcontracting services to other municipalities +- #1011 calculatedinvoice needs to contain VATtotal +- #1003 IncludedNote SubjectCode PMD AAB +- #998 ZUGFeRDInvoiceImporter does not properly handle UBL CreditNote documents +- #1006 Duplicate Notes and Missing BIC Parsing in ZUGFeRDInvoiceImporter +- #1010 add DeliveryNoteReferencedDocument per Item +- #1017 Concurrency problems in ZUGFeRDDateFormat +- #536 Add Field for "Invoiced Object Identifier" (BT-18) in Invoice.java to Align with XRechnung Requirements +- deprecate itemTotalAllowances instead of itemAllowances over itemCharges +- corrected import of UBL rounding amount 2.21.0 ======= diff --git a/README.md b/README.md index 5cb16cb2..593660e8 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ If you set up a Maven project, you can reference the mustang artifact like this: org.mustangproject validator - 2.20.0 + 2.22.0 shaded ``` diff --git a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java index 710fffb2..3d1b0b62 100644 --- a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java +++ b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java @@ -1082,7 +1082,7 @@ public class ZUGFeRDInvoiceImporter { } } - String rounding = extractString("//*[local-name()=\"SpecifiedTradeSettlementHeaderMonetarySummation\"]/*[local-name()=\"RoundingAmount\"]|//*[local-name()=\"LegalMonetaryTotal\"]/*[local-name()=\"Party\"]/*[local-name()=\"PayableRoundingAmount\"]"); + String rounding = extractString("//*[local-name()=\"SpecifiedTradeSettlementHeaderMonetarySummation\"]/*[local-name()=\"RoundingAmount\"]|//*[local-name()=\"LegalMonetaryTotal\"]/*[local-name()=\"PayableRoundingAmount\"]"); if (!rounding.isEmpty()) { zpp.setRoundingAmount(new BigDecimal(rounding.trim())); }