I was pleasantly surprised to discover the generate pdf using Markdown template function. I could achieve my first version of the invoice quickly and with a clean Markdown template. However, I noticed that currencies and time formats were not taken from the UI; currency fields seem to be rendered as numbers and dates seem to be rendered using a default locale.
I will share my template below. This are the issues I have:
- Dates not formatted in my nl-nl locale
- Money fields in the invoice line table formatted as plain numbers
- The table shorthand
- the template lacks clarity and this makes it prone to errors, which I do not want in my invoices
Alternative I consider is to use a local Pyhton script that retrieves invoice data using graphql api, generates a pdf and attaches it to the invoice in Fibery.
Any thoughts on how I can address the above issues in my current template?
This is my current template: