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
168 stars 99 forks source link

XRechnung version 2.3 used, but not valid yet #329

Closed seeeeew closed 8 months ago

seeeeew commented 1 year ago

After upgrading from Mustang 2.5.1 to 2.7.1 our XRechnung invoices got rejected by the recipient, because XRechnung version 2.3 is already used, even though it's not valid until 2023-08-01. I solved this in our software by using new Profile("XRECHNUNG", "urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.2") instead of Profiles.getByName("XRechnung") if it's before 2023-08-01, but it would be more convenient if the latter would automatically return the currently valid version. I'm pretty sure I remember this being the case in the past.

jstaerk commented 1 year ago

Hi, I'm not sure if the error is on our side: do they reject it? And why?

One could argue

At least the situation has improved and while their specs used to be valid only for six month they seem to have changed to an annual cycle.

msccip commented 1 year ago

No invoice portal currently accepts XRechnung 2.3. At least there is a warning. But most (e.g. ZUGFeRD Community(!), Bavaria or the OZG-RE) reject them as faulty because version 2.3 is not yet recognized. Before August 1st, 2023 nobody should send XRechnung with version 2.3.

seeeeew commented 1 year ago

@jstaerk I agree with everything you said, unfortunately at least Deutsche Bahn doesn't, and they're pretty big. They reject invoices with 2.3, but accept the same invoice with only the version changed to 2.2. When validating the 2.3 invoice I only get a warning, but for DB that's apparently enough to reject it. I'm sure they could process the invoice just fine if they tried, but the rejection happens automatically on submission, before any human even sees it.

asdf00000 commented 11 months ago

I can confirm what seeeeew wrote. They run their automatic validators on all invoices and reject them, no matter how trivial the error is. It would be great when the XRechnung-version was mentioned in the History.md for every future release (ideally with a warning, if that version is not yet officially "allowed").

jstaerk commented 8 months ago

thats a good idea I dont know if I remember to mention it every time but at least when something changes...