Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Zugferd / RechnungX Support #9092

Open
christf opened this issue Apr 13, 2021 · 10 comments
Open

Feature Request: Zugferd / RechnungX Support #9092

christf opened this issue Apr 13, 2021 · 10 comments
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type:Suggestion Issue containing a suggestion of functionality, process or UI. Associated PRs are called enhancement

Comments

@christf
Copy link

christf commented Apr 13, 2021

Issue

The german government mandates usage of RechnungX/Zugferd type bills for all contracts with the government: https://www.ferd-net.de/
SuiteCRM does not currently create invoices embedding xml data such as required for Zugferd.

In Germany there is hardly a way around it. It would be great if SuiteCRM would support creating invoices with additional xml markup complying with the Zugferd standard.

Context

Your Environment

  • SuiteCRM Version used: 7.11
@chris001
Copy link
Contributor

Looks like one of these top 2 or 3 PHP packages would help add the XML to the invoice so that it'd be EU compliant.
https://packagist.org/?query=zugferd

@johnM2401 johnM2401 added Area: Module Issues & PRs related to modules that do not have specific label Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type:Suggestion Issue containing a suggestion of functionality, process or UI. Associated PRs are called enhancement labels Apr 14, 2021
@tsmgeek
Copy link
Contributor

tsmgeek commented Apr 15, 2021

Does government require you to support Storno as well?

@christf instead of Embed as that seems to imply "into the PDF", do you mean more like Export in Zugferd Format and download an XML version of the invoice?

@christf
Copy link
Author

christf commented Apr 15, 2021

Zugferd says that there is a pdf file which is human readable and an artefact (xml stream) embedded into the pdf that is machine-readable.
There are other electronic standards too that have just the XML and not the pdf.
Since the german government explicitly requires Zugferd, the feature request for SuiteCRM would be to enhance the pdf files that are created by the existing pdf export or "send pdf via email" functions with the Zugferd XML metadata.

This means no UI changes would be required.

for other formats that are just the xml, a different Button would likely be needed in the UI.

@tsmgeek
Copy link
Contributor

tsmgeek commented Apr 15, 2021

mPDF how to attach the XML to it... Unfortunately it looks only be supported in v7 and CRM is still using mPDF v5

https://mpdf.github.io/what-else-can-i-do/pdf-a3-xmp-rdf.html

So to be supported we would need the core to upgrade (which ive pushed for but has not happened yet) or just allow export of the XML separately as there would be no way to create the PDF and merge the XML with current mPDF verison.

@christf
Copy link
Author

christf commented Apr 17, 2021

Zugferd requires a bit more than just embedding. It requires signing too. There is a bit of tooling available to do that which might be interesting: https://konik.io/

@christf
Copy link
Author

christf commented Aug 23, 2021

There is also this: https://github.com/easybill/zugferd-php - a Zugferd php library. This might be useful. It is on the list of Chris001' search.

@christf
Copy link
Author

christf commented Aug 25, 2021

I did play around with zugferd and pandoc / pdflatex these days and it is entirely possible to generate a pdf file with embedded zugferd xml with pdflatex. The resulting xml can be booked directly. If pdflatex actually would produce pdf/a, it would pass all validations.
I wonder if maybe templating should be something outside suitecrm and suitecrm should just export some machine readable format - be it markdown or xml or whatever.... then we would not have to upgrade core to upgrade mpdf to implement zugferd in suitecrm....

@meierwitt
Copy link

Is there any news about this? From 1.1.2025 electronic invoicing will be mandatory in Germany.

@gunnicom
Copy link
Contributor

gunnicom commented Sep 7, 2023

Small correction for germany (AFAIK):

  • Beginning 1.1.2025 it is mandatory to be able to receive electronic invoices.
  • Beginning 1.1.2026 it is mandatory to send electronic invoices.

@meierwitt
Copy link

If you send invoices to business customers, they can request e-invoices as early as 1 January 2025. This is how I interpret the second point here (German):
https://www.vgsd.de/umstellung-spaetestens-naechstes-jahr-angehen-das-ende-von-papier-und-pdf-rechnungen-naht/

For invoices to public clients, IMHO, this has been obligatory in part since 2020.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type:Suggestion Issue containing a suggestion of functionality, process or UI. Associated PRs are called enhancement
Projects
None yet
Development

No branches or pull requests

6 participants