Set file name prefix for pdf

version 5.1.5

Hi,

Currently the file names of the PDFs sent via email and downloadable in the client portal are the same as the document numbers.

If you haven’t changed the default setting, it will be 0001.pdf, 0002.pdf etc.

You can change the number format like:

Bildschirmfoto 2021-02-11 um 12.19.35

In this case the numbers will look like 2021-0001. The file name of the pdf is 2021-0001.pdf.

I haven’t been able to change the file name format or set a custom prefix and I personally don’t see a big need for this but I would love to see the file name being formatted like:

invoice-2021-0001.pdf or invoice-0001.pdf
and credit-…, quote-… etc.

Let me know what you think.

Thanks,
Gijs

1 Like

Thanks, I think it’s a good suggestion!

cc @david

@hillel would simply $entity->number.pdf work?

I think the suggestion is add the entity type as a prefix.

Since different entity types can have the same number I think it’s a good idea.

2 Likes