diff options
Diffstat (limited to 'httemplate/view/cust_main/payment_history.html')
-rw-r--r-- | httemplate/view/cust_main/payment_history.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index b2d98cc55..099bc4f2b 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -73,11 +73,21 @@ % my $link = $curuser->access_right('View invoices') % ? qq!<A HREF="${p}view/cust_bill.cgi?$invnum">! % : ''; +% my $events = ''; +% if ( $cust_bill->num_cust_event +% && ( $curuser->access_right('Billing event reports') +% || $curuser->access_right('View customer billing events') +% ) +% ) { +% $events = +% qq!<BR><FONT SIZE="-1"><A HREF="${p}search/cust_event.html?invnum=!. +% $cust_bill->invnum. '">( View invoice events )</A></FONT>'; +% } % push @history, { % 'date' => $cust_bill->_date, % 'desc' => $link. $pre. % "Invoice #$invnum (Balance \$". $cust_bill->owed. ')'. -% $post. ( $link ? '</A>' : '' ), +% $post. ( $link ? '</A>' : '' ). $events, % 'charge' => $cust_bill->charged, % }; %} |