diff options
author | ivan <ivan> | 2004-02-12 06:31:37 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-02-12 06:31:37 +0000 |
commit | f4ffa3596c3b8bfc9e862c2a7e8efc68f86207ab (patch) | |
tree | 74206962bf2668e8af73534a91c102e301299966 /httemplate/view | |
parent | 69b7034bf2f9605c394c4ee22aaed4d7873c1a84 (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') ) { |