PDF
  • kwalkwal March 2010

    Is there any way to disable the PDF capability?
    Or hide it or something.

    In our case, the invoices will be printed immediately to the local printer.
    That's about it.

    We want to keep it Simple.
    Specially for a few clerical staff who usually try to avoid using computers.

  • kwalkwal March 2010

    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?

  • justinjustin March 2010

    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&amp;view=invoice&amp;id={$invoice.id}&amp;format=pdf"><img src='images/common/page_white_acrobat.png' class='action' />&nbsp;{$LANG.export_pdf}</a>


    etc..

    let us know how you go

    Cheers

    Justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • kwalkwal March 2010

    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?

  • justinjustin March 2010

    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

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories