From: ivan Date: Mon, 12 Jan 2004 00:03:45 +0000 (+0000) Subject: only display "view typeset invoice" when there is an invoice_latex template X-Git-Tag: NET_WHOIS_RAW_0_31~189 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=13481802b29a511fa0aa1d10e2ad463e362bf8ed only display "view typeset invoice" when there is an invoice_latex template --- 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!Enter payments (check/cash) aga print qq!Reprint this invoice!. '

'; -print menubar( - 'View typeset invoice' => "${p}view/cust_bill-pdf.cgi?$invnum", -), '

'; +my $conf = new FS::Conf; +if ( $conf->exists('invoice_latex') ) { + print menubar( + 'View typeset invoice' => "${p}view/cust_bill-pdf.cgi?$invnum", + ), '

'; +} #false laziness with search/cust_bill_event.cgi