1 <& /elements/header-popup.html, mt('Void invoice') &>
3 <% include('/elements/error.html') %>
5 <% emt('Are you sure you want to void this invoice?') %>
8 <% emt("Invoice #[_1] ([_2])",$cust_bill->display_invnum, $money_char. $cust_bill->owed) %>
11 <FORM METHOD="POST" ACTION="process/void-cust_bill.html">
12 <INPUT TYPE="hidden" NAME="invnum" VALUE="<% $invnum %>">
14 <% ntable("#cccccc", 2) %>
15 <& /elements/tr-select-reason.html,
16 'field' => 'reasonnum',
17 'reason_class' => 'I',
21 % if ( $cust_bill->has_call_details ) {
22 <& /elements/tr-checkbox.html,
23 label => 'Reprocess CDRs',
24 field => 'reprocess_cdrs',
33 <BUTTON TYPE="submit">Yes, void invoice</BUTTON> \
34 <BUTTON TYPE="button" onClick="parent.cClick();">No, do not void invoice</BUTTON>
43 unless $FS::CurrentUser::CurrentUser->access_right('Void invoices');
45 my $conf = new FS::Conf;
46 my $money_char = $conf->config('money_char') || '$';
49 $cgi->param('invnum') =~ /^(\d+)$/ || die "Illegal invnum";
52 my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});