X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=099bc4f2b5ec04d9cdacbc4b048475851c9a1c40;hp=b2d98cc5522f41276e0a404035da1e6a493b8dfe;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hpb=32b5d3a31f112a381f0a15ac5e3a2204242f3405 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!! % : ''; +% my $events = ''; +% if ( $cust_bill->num_cust_event +% && ( $curuser->access_right('Billing event reports') +% || $curuser->access_right('View customer billing events') +% ) +% ) { +% $events = +% qq!
( View invoice events )'; +% } % push @history, { % 'date' => $cust_bill->_date, % 'desc' => $link. $pre. % "Invoice #$invnum (Balance \$". $cust_bill->owed. ')'. -% $post. ( $link ? '' : '' ), +% $post. ( $link ? '' : '' ). $events, % 'charge' => $cust_bill->charged, % }; %}