Re: [GNC-dev] xml for Romanian e-invoice
"Frank H. Ellenberger" <[email protected]> Thu, 18 Jan 2024 15:07:31 +0100
| Newsgroups | gmane.comp.gnome.apps.gnucash.devel |
|---|---|
| Message-ID | <[email protected]> |
Am 10.01.24 um 22:28 schrieb John Ralls: >> On Jan 10, 2024, at 12:50 PM, Mihai DEMIAN<[email protected]> wrote: >> >> Hello, >> >> My name is Mihai Demian, I am Romanian and I am one of many who has to implement the e-invoice system within six months. >> I tried to look at the sources for GC but I did not make any sense of most of it. Although I am reading some books and trying to learn C programming, I did not make it past the textbook exercises.... >> Starting January 1st, the Romanian government decided to change the law so that any invoice issued by any Romanian company has to send an xml invoice to the IRS-equivalent entity (ANAF). I found some examples that i attached. Unfortunately, those also don't make much sense. >> There is a way of generating the xmls that I have to try here:https://www.anaf.ro/CompletareFacturaInitial/faces/factura/informatiigenerale.xhtml and technical information here:https://mfinante.gov.ro/ro/web/efactura/informatii-tehnice. >> Do you know if there is the possibility of generating this kind of xml files from GC already? >> If not, how hard would it be implement such a system? >> How can I help? > It would be hard for a beginner programmer but not too hard for somebody who already knows Scheme (not C for this) and is familiar withhttps://www.gnu.org/software/guile/manual/html_node/Reading-and-Writing-XML.html. The implementor will also have to be fluent in Romanian in order to understand the specifications. I think that rules out anyone on the GnuCash team. You'll need to recruit someone to write and maintain it for you. > > This sort of national specialization is generally out of scope for GnuCash so don't plan on contributing it. > > Regards, > John Ralls IIRC many countries like the EU and its members are promoting e-Invoices. https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/eInvoicing https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/Obtaining+a+copy+of+the+European+standard+on+eInvoicing shows a list of European and international standards and specs behind them. I did not look in the details. It seems the base are UN/CEFACT XML Industry Invoice D16B and ISO/IEC 19845 (UBL 2.1) invoice and credit note Perhaps we would later need regional customizations. Just in case, someone wants to work in that direction. Working bottom up starting with a specific national form seems the wrong approach from my POV. Regards Frank