projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0fd894c
)
only display "view typeset invoice" when there is an invoice_latex template
author
ivan
<ivan>
Mon, 12 Jan 2004 00:03:45 +0000
(
00:03
+0000)
committer
ivan
<ivan>
Mon, 12 Jan 2004 00:03:45 +0000
(
00:03
+0000)
httemplate/view/cust_bill.cgi
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_bill.cgi
b/httemplate/view/cust_bill.cgi
index
4e0c438
..
4d98f3e
100755
(executable)
--- 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 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
#false laziness with search/cust_bill_event.cgi