In the "Money" Tab, under "Invoices" the default view shows a listing of the existing invoices as:
Actions, ID, Biller, Customer, Date, Total, Owing, Aging
For each invoice, under the Actions column you can:
-> Quick View
-> Edit
-> Print Preview
-> Export as PDF
-> Process Payment
-> Email
Is there any way to "$acl->deny ..." this "Export as PDF" feature in the php code?
hey kwal
easiest way is to edit the templates and remove the links to the PDF pages
./templates/default/invoices/quick_view.tpl
and delete the pdf section<!-- EXPORT TO PDF -->
<a title="{$LANG.export_tooltip} {$preference.pref_inv_wording} {$invoice.id} {$LANG.export_pdf_tooltip}" href="index.php?module=export&view=invoice&id={$invoice.id}&format=pdf"><img src='images/common/page_white_acrobat.png' class='action' /> {$LANG.export_pdf}</a>
etc..
let us know how you go
Cheers
Justin
Justin,
Thanks for the suggestion.
I did that.
The PDF link is gone in the other screens.
But it is still visible here ...
In the "Money" Tab,
under "Invoices"
the default view shows a listing of the existing invoices as:
Actions, ID, Biller, Customer, Date, Total, Owing, Aging
For each invoice, under the Actions column you can:
-> Quick View
-> Edit
-> Print Preview
-> Export as PDF (still visible)
-> Process Payment
-> Email
Is there some other tpl file that I should edit the same way?
hew kwal
for the other pages you would have to go through the templates for each page and manually remove the links
you can find the template based on the url of the page
ie. index.php?module=invoices&view=manage
then the template for this file would be ./templates/default/invoices/manage.tpl
just keep repeating the process and remove all the links and you'll be PDF free :)
let us know how you go
cheers
justin
It looks like you're new here. If you want to get involved, click one of these buttons!