ZUGFeRD / quba-viewer

Quba is a viewer for electronic invoices
Apache License 2.0
97 stars 20 forks source link

X-Rechnung 2.1/2.2 CreditNote (UBL) not working #24

Closed vbkredeemer closed 1 year ago

vbkredeemer commented 1 year ago

"File format not recognized" for UBL-CreditNote.

I was not able to open:

jstaerk commented 1 year ago

Hello, an example of a UBL creditnote is https://github.com/itplr-kosit/xrechnung-testsuite/blob/master/src/test/business-cases/standard/01.20a-INVOICE_ubl.xml which seems to open perfectly?

vbkredeemer commented 1 year ago

In my opinion, this is not a creditnote in the true sense of the definition for a UBL-CreditNote:

Our XML-Header looks the following way: <CreditNote xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">

I used https://validator.invoice-portal.de/?valid=validator to validate our creditnote. No problems on that side.

This tool uses some other codelists: https://github.com/jcthiele/OpenXRechnungToolbox/tree/master/resources/viewer/codelistresolve There it is possible to show our creditnote, but with other problems. It seems the tool needs the following codelist: https://github.com/jcthiele/OpenXRechnungToolbox/blob/master/resources/viewer/codelistresolve/ubl-creditnote-xr.xsl

jstaerk commented 1 year ago

no, you are right, that's something different. I had been looking for typecode 389=self billed invoice. Does anybody know why this distinction is apparently required in UBL (and not in CII?)? And is there a sample to be found anywhere?

jstaerk commented 1 year ago

can you please try if http://www.quba-viewer.org/quba_viewer-1.2.2.exe works for you?

vbkredeemer commented 1 year ago

Now it works. Just perfect. You are the best. :-) Now we finaly have a useable alternative for us. Thank you very much for your work!!!