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',
25 <BUTTON TYPE="submit">Yes, void invoice</BUTTON> \
26 <BUTTON TYPE="button" onClick="parent.cClick();">No, do not void invoice</BUTTON>
35 unless $FS::CurrentUser::CurrentUser->access_right('Void invoices');
37 my $conf = new FS::Conf;
38 my $money_char = $conf->config('money_char') || '$';
41 $cgi->param('invnum') =~ /^(\d+)$/ || die "Illegal invnum";
44 my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});