Hello everyone!
I have created three PDF Templates for testing purposes - one for each module: Quotes, Invoices and Report. I did it all āby the bookā - just followed the steps described in Userās Manual. Plain and simple.
If I go to āPrint as PDFā, the downloaded document is correct by all means except it doesnāt look like my custom made template. It looks like none of the custom templates is being used and there is no step for choosing desired template. I have tried with log-out/log-in, permissions repair, Quick repair and rebuild, deleted browserās cache but nothing helped.
Iām on SuiteCRM 7.9.9.
I had a few minor glitches so far but they were mostly permissions related. This is the first time Iām facing something like this. Is it a bug I should report? How can I detect it to be sure?
Thank you all in advance and best regards!
vinkobak
Hello again!
Out of lack of answers I came to solution which may point to a bugā¦ As mentioned in previous post, I had three custom templates - one for quotes, one for invoices and one for reports. Clicking on Print to PDF gave me no chooser window to pick desired custom template. I thought itās because I had only one template and that template would be used to produce PDF. But no, that was not the case. PDF was produced with, presumably, default PDF template for Quotes.
After creating another custom template for quotes, clicking on Print to PDF opened floating window with two custom templates to choose from!
Should I report it as a bug?
Best regards!
vinkobak
Another update on this topicā¦
It seems above mentioned āsolutionā does not work with Reports. I have created two report templates but canāt reach template chooser. When a report is created clicking on Download PDF immediately downloads report created with, again presumably, default template.
Still trying to figure out how to get to chooser window or some other way to use my custom report template. Any suggestion is welcome!
Regards,
vinkobak
Hereās what I have learned so far:
Userās Manual clearly states itās possible to connect extra modules with PDF Template module (in āTypeā dropdown).
My āItem Nameā is [AOR_Reports] and, unless the module directory is named differently, this should work. Unfortunately it doesnāt. If I go on Download PDF in Reports -> Actions, download starts immediately and I canāt choose desired template.
Also, in PDF Template Edit view, āInsert Fieldā canāt be populated.
I suspect there is a problem with module name in āItem Nameā or, for some reason, there is no connection between āItem Nameā and desired module.
I hope after releasing 7.10 some developer would stumble upon this and maybe offer some way out.
[quote=āvinkobakā post=60425]Hereās what I have learned so far:
Userās Manual clearly states itās possible to connect extra modules with PDF Template module (in āTypeā dropdown).
I have made a custom PDF template for my custom module, you give an idea of how to resolve this āproblemā, I have followed your steps and for the item name I wrote the name of the directory (i have connected to my site using FTP and look inside the modules directory, then found the name of the custom module), I have made these steps and voilĆ , all my fields appeared in Insert Fields dropdown like magic.
Hope this helps