diff options
author | ivan <ivan> | 2002-02-27 22:39:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-02-27 22:39:14 +0000 |
commit | 6a37289c12238d48ea864b8177216ca276b33a40 (patch) | |
tree | 5b19e5b3a4ad47d0ebd19edc9b1694c3baf8b29d /httemplate/view | |
parent | 9dacc694c1401117d7e34376aa4916f5a4810cab (diff) |
add status and statustext fields to cust_bill_event
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/cust_bill.cgi | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 7c2af06a7..95f1a0af8 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -22,13 +22,17 @@ print qq!<A HREF="${p}edit/cust_pay.cgi?$invnum">Enter payments (check/cash) aga print qq!<A HREF="${p}misc/print-invoice.cgi?$invnum">Reprint this invoice</A>!. '<BR><BR>'; +print 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 ) { - print time2str("%a %b %e %T %Y", $cust_bill_event->_date). ' - '. - $cust_bill_event->part_bill_event->event. '<BR>'; + my $status = $cust_bill_event->status; + $status .= ': '. $cust_bill_event->statustext if $cust_bill_event->statustext; + print '<TR><TD>'. $cust_bill_event->part_bill_event->event. '</TD><TD>'. + time2str("%a %b %e %T %Y", $cust_bill_event->_date). '</TD><TD>'. + $status. '</TD></TR>'; } -print '<BR><PRE>'; +print '</TABLE><BR><PRE>'; print $cust_bill->print_text; |