Not sure if it already exists and I missed the documentation, but I wanted to put in a request for dynamic variables for month and year.
I am looking to set up recurring invoices and need to show month and year in the “Item” or “Description” of the invoice. For example, I set up a recurring invoice for the 1st of every month and if I put in the dynamic variable [month] [year] it will show August 2015 (assuming the recurring invoice was automatically created on August 1, 2015).
Can this be added to the list of features requested by the community? If so, when can something like this be added and an update pushed out?
As far as I know, it’s not possible without modifications.
You can do this by using a custom invoice template and placeholders in your items. You have to replace these placeholders in your template using something like str_replace
Today I had the same issue, I wanted to create a recurring invoice with an item description with a replaceable variable.
In my case, I wanted something like: Hosting for example.com, until August {{{nextYear}}}
So I build this feature
It’s easy to add {{{year}}} and {{{month}}}
Apologies for the delay in responding. I hadn’t checked back on my post and just saw your response.
I’m definitely still interested as this will help me greatly in setting up my recurring invoices and not having to worry about manually placing the month and year in the line item/description area each time.
I’m not too technical, do I just need to download your .zip from github and replace certain files?
I saw that there were discussions about implementing month & year dynamic variables to invoice item fields. however, I think it should be applied to the email subject section as well. That way anyone receiving the email would immediately know which month this invoice is related to. this is really useful if the services are time-sheet based or hosting related.
Currently only the {{{invoice_number}}} variable works with the email subject field. I’ve used other variables (invoice_created, invoice_date, month, year) but none worked. Is there a way to add the invoice month and year in to the email subject field?