ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
175 stars 100 forks source link

Invoice extracted from CII XML returns only one IBAN (BT-84) although there are more #408

Closed melo0187 closed 2 weeks ago

melo0187 commented 2 weeks ago

Given a CII XML file from itplr-kosit/xrechnung-testsuite when extracting an Invoice with org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter#extractInvoice and accessing org.mustangproject.TradeParty#getBankDetails through org.mustangproject.Invoice#getSender then only one org.mustangproject.BankDetails object is returned.

Because the CII XML actually contains PayeePartyCreditorFinancialAccount twice (each within its own SpecifiedTradeSettlementPaymentMeans), I would have expected invoice.getSender().getBankDetails() to return a list with two org.mustangproject.BankDetails objects.

melo0187 commented 1 week ago

@jstaerk excited to see this has been fixed. Any ETA for the next release that ships with this fix?