<& /elements/header-popup.html, mt('Void invoice') &> <% include('/elements/error.html') %> <% emt('Are you sure you want to void this invoice?') %>

<% emt("Invoice #[_1] ([_2])",$cust_bill->display_invnum, $money_char. $cust_bill->owed) %>

<% ntable("#cccccc", 2) %> Reason
   \
<%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Void invoices'); my $conf = new FS::Conf; my $money_char = $conf->config('money_char') || '$'; #untaint invnum $cgi->param('invnum') =~ /^(\d+)$/ || die "Illegal invnum"; my $invnum = $1; my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});