InvoicePlane Peppol XML export (Belgium)

Hi there
since there seems to be no official export for Belgian Peppol XML’s I tried to make one.
I’v not yet been able to test it as I’m registered with be.letspeppol.org and apparantly they don’t support importing XML’s to be sent to customers (yet?).
I would love to share my solution however and hope someone smarter than me solves the rest ;-).
I use IP 1.7.0 at this moment and exporting the XML’s seems to work fine. All you need to do is activate e-invoicing in the system settings (enable e-invoicing). Then check your customer’s data:

  • fill in the official name and VAT-code
  • set e-invoicing to yes for that client
  • choose the correct template
  • make a new invoice
  • export the XML as you would a pdf … just choose XML instead of PDF

UblPeppolV21.php (802 Bytes)
UblPeppolV21Xml.php (19.8 KB)
put UblPeppolV21Xml.php in the folder application\libraries\XMLtemplates\ and UblPeppolV21.php in application\helpers\XMLconfigs\

1 Like

Thank you for your contribution.

I’ve added it on github for you.