diff options
author | ivan <ivan> | 2004-02-12 06:31:39 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-02-12 06:31:39 +0000 |
commit | 795f1508db74c47a42cf947be9401c6db9b61083 (patch) | |
tree | b1ae994a959c13b86ead2e2105a5c4ac165eca68 /httemplate/view | |
parent | 1158b98b59803b3bc05a38f73e639fc6b2b8799e (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-x | httemplate/view/cust_bill.cgi | 8 |
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') ) { |