<% $link %><% $invoice %><% $link ? '' : '' %> voided % my $void_user = $cust_bill_void->void_access_user; % if ($void_user) { by <% $void_user->username %> % } % my $reason = $cust_bill_void->reason; % if ($reason) { (<% $reason |h %>) % } <% mt("on [_1]", time2str($date_format, $cust_bill_void->void_date) ) |h %> <% "$unvoid$under" %> <%init> my( $cust_bill_void, %opt ) = @_; my $date_format = $opt{'date_format'} || '%m/%d/%Y'; my $invoice = emt("Invoice #[_1] (Balance [_2])",$cust_bill_void->display_invnum, $cust_bill_void->charged); my $under = ''; my $invnum = $cust_bill_void->invnum; my $link = $opt{'View invoices'} ? qq!! : ''; my $unvoid = ''; $unvoid = areyousure_link("${p}misc/unvoid-cust_bill_void.html?invnum=". $cust_bill_void->invnum, emt('Are you sure you want to unvoid this invoice?'), emt('Unvoid this invoice'), emt('unvoid') ) if $cust_bill_void->closed !~ /^Y/ && $opt{'Unvoid invoices'}; my $events = ''; if ( $cust_bill_void->num_cust_event && ($opt{'Billing event reports'} || $opt{'View customer billing events'}) ) { $under .= qq!
( !. emt('View invoice events').' )'; } $under = ''.$under.'' if length($under);