invopop / gobl.xinvoice

GOBL conversion into Factur-X (FR) and XRechnung/ZUGFeRD (DE) formats.
Apache License 2.0
11 stars 1 forks source link

Reverse-Charge Example? #21

Open hschneider opened 4 days ago

hschneider commented 4 days ago

At first thanks for this awesome package.

There is still one thing unclear to me: How can I apply the tax codes (e.g. "E", "AE") to the invoice and the billing lines in the GOBL JSON? Can you post a short example for this?

samlown commented 3 days ago

Great to hear this is useful! So the tax code handling was recently improved and moved into the core GOBL library as part of the eu-en16931-v2017 addon included with de-xrechnung-v3. You can see an example here: https://github.com/invopop/gobl/blob/main/examples/de/invoice-de-es-b2b.yaml, with the output here.

The issue however is that this gobl.xinvoice library is out of date, and we've been focussing on the github.com/invopop/gobl.cii library instead, whose latest PR implements the correct mapping. We hope to release that this week and deprecate this package. I'll leave this issue open so that I remember to provide an update when ready.