X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill.cgi;h=4e0c4383beaa6e75d693d722dcd43c80746634e6;hp=7c2af06a77755da1ffff16751e3549c2cadab1e8;hb=0fd894c50eaa84169115ccbb682a53f5148a8c9c;hpb=a4c96748eb6eab29a70f3a944c6520283a635c78 diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 7c2af06a7..4e0c4383b 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -22,13 +22,23 @@ print qq!Enter payments (check/cash) aga print qq!Reprint this invoice!. '

'; +print menubar( + 'View typeset invoice' => "${p}view/cust_bill-pdf.cgi?$invnum", +), '

'; + +#false laziness with search/cust_bill_event.cgi + +print table(). 'EventDateStatus'; foreach my $cust_bill_event ( sort { $a->_date <=> $b->_date } $cust_bill->cust_bill_event ) { - print time2str("%a %b %e %T %Y", $cust_bill_event->_date). ' - '. - $cust_bill_event->part_bill_event->event. '
'; + my $status = $cust_bill_event->status; + $status .= ': '. $cust_bill_event->statustext if $cust_bill_event->statustext; + print ''. $cust_bill_event->part_bill_event->event. ''. + time2str("%a %b %e %T %Y", $cust_bill_event->_date). ''. + $status. ''; } -print '
';
+print '
';
 
 print $cust_bill->print_text;