invoiceninja / invoiceninja

Invoices, Expenses and Tasks built with Laravel, Flutter and React
https://invoiceninja.com
Other
8.02k stars 2.25k forks source link

Customize filename of downloaded invoice #7119

Open w4tchout opened 2 years ago

w4tchout commented 2 years ago

**What version of Invoice Ninja are you running? v5.3.44

What environment are you running? Shared Hosting

Have you searched existing issues/requests? yes, can't find it

Screenshots

Additional context A small feature request: it would be great if we could set the filename for downloaded invoices. Right now the filename consists of just the invoice number. It would be nice to be able to change that to for instance customtext_invoicenumber_clientname_date.pdf

GerasDraugas commented 1 year ago

This year, the file of generated invoice has changed. I can't find which version. Was .pdf now invoice_.pdf Is this managed anywhere?

turbo124 commented 1 year ago

L190 in App/Models/BaseModel.php

numberFormatter() is where we format the names of the PDF

GerasDraugas commented 1 year ago

First of all: thank you. This is a wonderful product for my wife's small business.

I found: public function numberFormatter() But the function doesn't answer why my invoice was: 2022122501.pdf became: Invoice_2023012501.pdf

turbo124 commented 1 year ago

@GerasDraugas

We made this change to make it clearer what the document was, so each document is now prefixed with the document Type, ie. Invoice Quote

GerasDraugas commented 1 year ago

A sensible solution. Thank you for your reply.

Fred-DTV commented 12 months ago

If I may add to this: It would be great to have the possibility to add more customisation to the file name.

Especially we found that adding our company name to the file name helps us and our clients to find the right file more easily e.g. "Company Inc. - Invoice - 123.pdf"

GerasDraugas commented 12 months ago

You can always create a directory for a company. Company\invoice_xyz.pdf

Fred-DTV commented 12 months ago

You can always create a directory for a company. Company\invoice_xyz.pdf

Well this doesn't solve anything unfortunately First I can't tell my clients what to do and secondly if I search for an invoice e.g. with spotlight or finder on the Mac it shows only the filename and not the folder immidiately, so to seperate different company invoices I need a couple of more steps, which eventually becomes very tedious

shurushetr commented 10 months ago

You can always create a directory for a company. Company\invoice_xyz.pdf

so when a client downloads an invoice from client portal, into the download folder, with bunch of other invoices named in a similar non human readable way, how would he find the one from you?

jeremyrmck commented 10 months ago

I will add a +1 to being able to better customize file names of invoices. I work with a client who has dozens of contractors, and requires invoices to be submitted with very specific file names. The fact that the prefix "Invoice_" is added to the invoice number, makes this filename incorrect for my client. My only recourse is to download the pdf myself from Invoice Ninja, rename, and then send through my own email, defeating many of the conveniences of using Invoice Ninja to automate these processes.

lab101 commented 10 months ago

Also +1 for having customisable filenames. Now I have to rename them by hand everytime (using the hosted solution)

smachi commented 8 months ago

+1 for this functionality

weswedeerest commented 5 months ago

+1 more for this functionality

AD2009 commented 2 months ago

Me too, +1 on being able to set custom filename or at least remove the invoice prefix.

arhyarion commented 1 month ago

+1 for me, customized filenames are very important to my business

vincent41 commented 8 hours ago

+1