summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
-rwxr-xr-xhttemplate/view/cust_bill.cgi59
1 files changed, 7 insertions, 52 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index 42e1e6177..c5373ff19 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -60,63 +60,18 @@
<A HREF="<% $p %>view/cust_bill-pdf.cgi?<% $link %>.pdf">View typeset invoice</A>
<BR><BR>
% }
-% #false laziness with search/cust_bill_event.cgi
-% unless ( $templatename ) {
-
-
- <% table() %>
- <TR>
- <TH>Event</TH>
- <TH>Date</TH>
- <TH>Status</TH>
- </TR>
-% foreach my $cust_bill_event (
-% sort { $a->_date <=> $b->_date } $cust_bill->cust_bill_event
-% ) {
-%
-% my $status = $cust_bill_event->status;
-% $status .= ': '. encode_entities($cust_bill_event->statustext)
-% if $cust_bill_event->statustext;
-% my $part_bill_event = $cust_bill_event->part_bill_event;
-%
-
- <TR>
- <TD><% $part_bill_event->event %>
-% if ( $part_bill_event->templatename ) {
-% my $alt_templatename = $part_bill_event->templatename;
-% my $alt_link = "$alt_templatename-$invnum";
-%
-
- ( <A HREF="<% $p %>view/cust_bill.cgi?<% $alt_link %>">view</A>
- | <A HREF="<% $p %>view/cust_bill-pdf.cgi?<% $alt_link %>.pdf">view
- typeset</A>
- | <A HREF="<% $p %>misc/print-invoice.cgi?<% $alt_link %>">re-print</A>
-% if ( grep { $_ ne 'POST' }
-% $cust_bill->cust_main->invoicing_list ) {
-
- | <A HREF="<% $p %>misc/email-invoice.cgi?<% $alt_link %>">re-email</A>
-% }
-% if ( $conf->exists('hylafax')
-% && length($cust_bill->cust_main->fax) ) {
- | <A HREF="<% $p %>misc/fax-invoice.cgi?<% $alt_link %>">re-fax</A>
+% my $br = 0;
+% if ( $cust_bill->num_cust_event ) { $br++;
+<A HREF="<%$p%>search/cust_event.html?invnum=<% $cust_bill->invnum %>">(&nbsp;View invoice events&nbsp;)</A>
% }
+% if ( $cust_bill->num_cust_bill_event ) { $br++;
+<A HREF="<%$p%>search/cust_bill_event.cgi?invnum=<% $cust_bill->invnum %>">(&nbsp;View deprecated, old-style invoice events&nbsp;)</A>
+% }
- )
-% }
+<% $br ? '<BR><BR>' : '' %>
-
- </TD>
- <TD><% time2str("%a %b %e %T %Y", $cust_bill_event->_date) %></TD>
- <TD><% $status %></TD>
- </TR>
-% }
-
-
- </TABLE>
- <BR>
-% }
% if ( $conf->exists('invoice_html') ) {
<% join('', $cust_bill->print_html('', $templatename) ) %>