diff options
author | ivan <ivan> | 2004-01-12 00:03:46 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-01-12 00:03:46 +0000 |
commit | 85b97fd954bfdf890c3fb62ad64b9172972a7760 (patch) | |
tree | 8f07353f54cf24b13a22d8b4e47f7a5998a69403 | |
parent | d173866aa911877663c3350dbedff2413b1cd5d3 (diff) |
only display "view typeset invoice" when there is an invoice_latex template
-rwxr-xr-x | httemplate/view/cust_bill.cgi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 4e0c4383b..4d98f3ebc 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -22,9 +22,12 @@ print qq!<A HREF="${p}edit/cust_pay.cgi?$invnum">Enter payments (check/cash) aga print qq!<A HREF="${p}misc/print-invoice.cgi?$invnum">Reprint this invoice</A>!. '<BR><BR>'; -print menubar( - 'View typeset invoice' => "${p}view/cust_bill-pdf.cgi?$invnum", -), '<BR><BR>'; +my $conf = new FS::Conf; +if ( $conf->exists('invoice_latex') ) { + print menubar( + 'View typeset invoice' => "${p}view/cust_bill-pdf.cgi?$invnum", + ), '<BR><BR>'; +} #false laziness with search/cust_bill_event.cgi |