Hi,
I’m looking for the possibility to define/select a specific (invoice) PDF template before downloading it.
Current status in InvoicePlane
Customise two different PDF templates Templ1 (template1.php
) and Templ2 (template2.php
) in /application/views/invoice_templates/pdf/
Define Templ1 as default PDF template under Settings Invoices Invoice Template
Downloading an invoice results in using the template1.php
for invoice layout.
To use Templ2 as PDF template change default template under Settings Invoices Invoice Template to Templ2 .
Invoice downloads from now on use template2.php
for invoice layout.
Work around (not tested)
Default PDF template is set to Templ1 .
Go to Invoices .
Click button [Options] of the respective invoice.
Choose Send Email
Enter your own email address as recipient.
Under PDF Template choose Templ2 …
Click [Send].
Received email should have attached the invoice with Templ2 layout irrespective of Templ1 as default PDF template.
Nice to have (in the long run)
Define Templ1 as default PDF template under Settings Invoices Invoice Template
Add new customer.
New field Default PDF Template is pre-set with setting’s configuration (Templ1 ). Change it to Templ2 if necessary.
Save new customer.
Add new invoice for customer.
New field Default PDF Template is pre-set with customer’s default setting (Templ2 ). Change it if necessary.
Save new invoice.
Downloading this invoice results in using its PDF template setting.
Nice to have (low hanging fruits)
Use the PDF template chosing mechanism from the Send Email dialogue before downloading the invoice PDF.
Edit: Though I only need this feature for invoices it probably would be nice for quotes, too…
FooLab
December 18, 2017, 8:42pm
3
imbroglio:
Work around (not tested)
Default PDF template is set to Templ1.
Go to Invoices.
Click button [Options] of the respective invoice.
Choose Send Email
Enter your own email address as recipient.
Under PDF Template choose Templ2…
Click [Send].
Received email should have attached the invoice with Templ2 layout irrespective of Templ1 as default PDF template.
This is working!! So I think that it can be easy for a dev to set up the same code in the “edit invoice page” and enable the possibility to set it from there.
Then, in the long run, it could be awesome to have the possibility to link PDF/Guest Templates to Invoice/Guest views group/family. Setting template from here: /index.php/invoice_groups/index
Hello,
Nothing is easy for a dev haha
Without some jokes, to be honest at the moment there is a lot of bug fixes/new features for the next minor version. But as we’re all giving time for free (including @Kovah ) it takes more time than expected but the project is still alive.
For me to be honest I’m waiting for the next release version to fix eventually bugs that occur with the new release and then work on new features, so if the feature is approved by @Kovah then maybe for the 1.5.7 or 1.6.0 (there is also some cool features for 1.6.0 and a new calculation process in progress)
Regards,
1 Like
Orkhan
December 22, 2017, 9:33pm
5
Hello. I ask a create Azerbaijani language for contribute. But don’t get answer.
Kovah
December 22, 2017, 9:36pm
6
FooLab
December 26, 2017, 2:06pm
7
@dev_invoiceplane of course! But as I was able to adapt and “implement” it on a 1.5.5 installation (the code is already on the linked below PR) I think that a dev (I’m not) can implement it easily and meanwhile check if is using standards.
InvoicePlane:development
← dantefff:development
opened 04:18PM - 13 Jan 16 UTC
This commit adds a extra select in invoice groups for choosing a custom default … template. In case there is no template selected everything works as before.
This allows us having different templates for different kinds of documents (proforma/delivery note/...)
There is a small change in database (see application/modules/setup/sql/017_1.4.4-nextRelease.sql). I didn't know where to put this change so rename this file as you like.
PD: This is a reborn of pull request #333
IMHO this PR miss only a thing, pre-setting the selected template in the “Send Mail” overlay.
FooLab
February 4, 2019, 2:29pm
10
it’s not my work but @dantefff 's
1 Like
FooLab
February 4, 2019, 2:49pm
11
here’s another PR (by @749 ) about that feature request:
InvoicePlane:release
← 749:v1.6.0
opened 11:23AM - 16 Mar 18 UTC
Pull Request Checklist
* [x] My code follows the code formatting guidelines… .
* [x] I have an issue ID for this pull request.
* [x] I selected the corresponding branch. (v1.6.0)
* [x] I have rebased my changes on top of the corresponding branch.
Issue Type (Please check one or more)
* [ ] Bugfix
* [ ] Improvement of an existing Feature
* [x] New Feature
_This is likely not the full fix for the issue, but hopefully a step in the right direction._
This PR adds a dropdown-submenu to the "Download PDF" so the user can choose the PDF at invoice/quote creation. The current system-default is highlighted by a chevron.
See image below for an example of what it adds to the system
![image](https://user-images.githubusercontent.com/1689704/37518124-2748d52a-2914-11e8-9fcd-6dd17299ca5d.png)
3 Likes