Printing of invoice counters in pdf

Is it possible to display only the counter of the invoice in the pdf of the invoice?
In the header of the document I should put “Call to the number COUNTER”

The best I could do was put:
“text”: “$invoice_number”

but it shows the complete number of invoices, and I only need the counter and the year, for example.


but in pdf not working


invoice_number working



This isn’t supported.

ok thanks for the quick reply but unfortunately every time I asked it was not supported :frowning:

Can you tell me in which part $invoice_number is defined in which file, so that I can try to edit it myself?

I’m not sure how this would work. The counter isn’t stored on the invoice, it’s stored on the account.