X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill.cgi;h=c5373ff196cf98019a596a1afd5d9b9340d0bf35;hp=42e1e61773320dafd359131295eb0233679d755a;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hpb=17856ff5c299e4db21da28116f2666655c03f2c7
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 @@
View typeset invoice
% }
-% #false laziness with search/cust_bill_event.cgi
-% unless ( $templatename ) {
-
-
- <% table() %>
-
- Event |
- Date |
- Status |
-
-% 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;
-%
-
-
- <% $part_bill_event->event %>
-% if ( $part_bill_event->templatename ) {
-% my $alt_templatename = $part_bill_event->templatename;
-% my $alt_link = "$alt_templatename-$invnum";
-%
-
- ( view
- | view
- typeset
- | re-print
-% if ( grep { $_ ne 'POST' }
-% $cust_bill->cust_main->invoicing_list ) {
-
- | re-email
-% }
-% if ( $conf->exists('hylafax')
-% && length($cust_bill->cust_main->fax) ) {
- | re-fax
+% my $br = 0;
+% if ( $cust_bill->num_cust_event ) { $br++;
+( View invoice events )
% }
+% if ( $cust_bill->num_cust_bill_event ) { $br++;
+( View deprecated, old-style invoice events )
+% }
- )
-% }
+<% $br ? '
' : '' %>
-
- |
- <% time2str("%a %b %e %T %Y", $cust_bill_event->_date) %> |
- <% $status %> |
-
-% }
-
-
-
-
-% }
% if ( $conf->exists('invoice_html') ) {
<% join('', $cust_bill->print_html('', $templatename) ) %>