X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill.cgi;h=4d98f3ebc8fb53683a29d36ed6e816d8317a0cf1;hb=ff15db0f2fa18e67498d0097797b667a81b51f71;hp=4e0c4383beaa6e75d693d722dcd43c80746634e6;hpb=0fd894c50eaa84169115ccbb682a53f5148a8c9c;p=freeside.git
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