From: ivan Date: Mon, 12 Jan 2004 00:03:46 +0000 (+0000) Subject: only display "view typeset invoice" when there is an invoice_latex template X-Git-Tag: freeside_1_4_2beta1~310 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=85b97fd954bfdf890c3fb62ad64b9172972a7760;p=freeside.git 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