[GNC] European electronic invoicing standard

Adrien Monteleone adrien.monteleone at lusfiber.net
Wed Mar 18 13:30:20 EDT 2020


Okay, that looks like the basic requirement is an XML document that conforms to UBL (Universal Business Language) with some country specific additional requirements. (those would have to be investigated and addressed individually)

GnuCash doesn’t provide this out of the box, but it might be possible to obtain.

First, the default file format for GnuCash is compressed XML. You can opt to store it uncompressed, or uncompress it on demand. (unzip works fine)

You might then write a script to extract the invoice detail, as-is, then you’d need to see if it conforms to UBL. (and then the country requirements) It probably won’t, but perhaps some of those difference are just naming/tag conventions, so you might be able to script that as a translation. (GnuCash might label an invoice total with a different word than UBL, so you’d just do a find/replace on that string when contained as a tag)

I can’t say what might achieve the country specific requirements without seeing them. (that’s a bridge to cross later, and might not be so terrible)

Another option is to run the invoice report, export or copy/paste it to a text file. It is HTML. You should be able to find HTML > XML converters, and maybe even an HTML > UBL converter online. Then further massage from there.

A third option is to find some online service that will take XML or HTML and generate the proper file meeting whatever regulations you need.

On a side note, filing a bug/enhancement for GnuCash’s XML invoice storage to more closely conform to UBL might be beneficial to a large audience. It might make the better export format instead of HTML. (or in addition to)

Regards,
Adrien


> On Mar 18, 2020 w12d78, at 12:00 PM, Michael L. Wilson <michael.l.wilson at utu.fi> wrote:
> 
> Hello!
> 
> I think the following might be useful:
> 
> https://docs.microsoft.com/en-us/dynamics365/finance/localizations/emea-oioubl-standards-electronic-invoicing
> 
> M
> 
> On 3/18/20 6:55 PM, Adrien Monteleone wrote:
>> I don’t see anything there about actual requirements. It appears to be just about the process of coming up with a standard. I did look over the ‘directive’ and still it was short on final specs.
>> 
>> Do you have a link for whatever was eventually settled on?
>> 
>> Regards,
>> Adrien
>> 
>>> On Mar 18, 2020 w12d78, at 11:37 AM, Michael L. Wilson <michael.l.wilson at utu.fi> wrote:
>>> 
>>> Greetings,
>>> 
>>> Might someone be able to confirm whether GnuCash is able to issue
>>> invoices in line with the European electronic invoicing standard?
>>> 
>>> https://ec.europa.eu/growth/single-market/public-procurement/digital/einvoicing_en
>>> 
>>> If any documentation exists concerning this, it would be greatly
>>> appreciated.
>>> 
>>> Michael
>> 
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>> 
> 




More information about the gnucash-user mailing list