summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorivan <ivan>2004-02-12 06:31:39 +0000
committerivan <ivan>2004-02-12 06:31:39 +0000
commit795f1508db74c47a42cf947be9401c6db9b61083 (patch)
treeb1ae994a959c13b86ead2e2105a5c4ac165eca68 /httemplate/view
parent1158b98b59803b3bc05a38f73e639fc6b2b8799e (diff)
re-email invoice, closes: bug#526 and have print and email invoice links redirect back to top of customer view page instead of #history tag
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/cust_bill.cgi8
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index 4d98f3ebc..50ee8b36c 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -20,7 +20,13 @@ print header('Invoice View', menubar(
print qq!<A HREF="${p}edit/cust_pay.cgi?$invnum">Enter payments (check/cash) against this invoice</A> | !
if $cust_bill->owed > 0;
-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>!;
+if ( grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ) {
+ print qq! | <A HREF="${p}misc/email-invoice.cgi?$invnum">!.
+ qq!Re-email this invoice</A>!;
+}
+
+print '<BR><BR>';
my $conf = new FS::Conf;
if ( $conf->exists('invoice_latex') ) {