ignore weight when editing DCRD/DCHK payment methods, #71176
[freeside.git] / httemplate / misc / void-cust_bill.html
1 <& /elements/header-popup.html, mt('Void invoice') &>
2
3 <% include('/elements/error.html') %>
4
5 <% emt('Are you sure you want to void this invoice?') %>
6 <BR><BR>
7
8 <% emt("Invoice #[_1] ([_2])",$cust_bill->display_invnum, $money_char. $cust_bill->owed) %>
9 <BR><BR>
10
11 <FORM METHOD="POST" ACTION="process/void-cust_bill.html">
12 <INPUT TYPE="hidden" NAME="invnum" VALUE="<% $invnum %>">
13
14 <% ntable("#cccccc", 2) %>
15 <& /elements/tr-select-reason.html,
16              'field'          => 'reasonnum',
17              'reason_class'   => 'I',
18              'cgi'            => $cgi
19 &>
20
21 </TABLE>
22
23 <BR>
24 <CENTER>
25 <BUTTON TYPE="submit">Yes, void invoice</BUTTON>&nbsp;&nbsp;&nbsp;\
26 <BUTTON TYPE="button" onClick="parent.cClick();">No, do not void invoice</BUTTON>
27 </CENTER>
28
29 </FORM>
30 </BODY>
31 </HTML>
32 <%init>
33
34 die "access denied"
35   unless $FS::CurrentUser::CurrentUser->access_right('Void invoices');
36
37 my $conf = new FS::Conf;
38 my $money_char = $conf->config('money_char') || '$';
39
40 #untaint invnum
41 $cgi->param('invnum') =~ /^(\d+)$/ || die "Illegal invnum";
42 my $invnum = $1;
43
44 my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
45
46 </%init>