1 <DEL><% $link %><% $invoice %><% $link ? '</A>' : '' %></DEL>
3 % my $void_user = $cust_bill_void->void_access_user;
5 by <% $void_user->username %>
7 % my $reason = $cust_bill_void->reason;
11 <% mt("on [_1]", time2str($date_format, $cust_bill_void->void_date) ) |h %>
16 my( $cust_bill_void, %opt ) = @_;
18 my $date_format = $opt{'date_format'} || '%m/%d/%Y';
20 my $invoice = emt("Invoice #[_1] (Balance [_2])",$cust_bill_void->display_invnum, $cust_bill_void->charged);
24 my $invnum = $cust_bill_void->invnum;
26 my $link = $opt{'View invoices'}
27 ? qq!<A HREF="${p}view/cust_bill_void.html?$invnum">!
31 $unvoid = areyousure_link("${p}misc/unvoid-cust_bill_void.html?invnum=". $cust_bill_void->invnum,
32 emt('Are you sure you want to unvoid this invoice?'),
33 emt('Unvoid this invoice'),
36 if $cust_bill_void->closed !~ /^Y/ && $opt{'Unvoid invoices'};
39 if ( $cust_bill_void->num_cust_event
40 && ($opt{'Billing event reports'} || $opt{'View customer billing events'})
44 qq!<BR><A HREF="${p}search/cust_event.html?invnum=$invnum">( !.
45 emt('View invoice events').' )</A>';
47 $under = '<FONT SIZE="-1">'.$under.'</FONT>' if length($under);