summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-11-04 15:12:49 -0800
committerMark Wells <mark@freeside.biz>2015-11-04 15:12:49 -0800
commit4f223dd481c3a9c7816bed964ff45171f9b5d014 (patch)
tree975de19d8a94ba4f38295de583ac4af23f6dffd0 /httemplate/misc
parentc82e10e2a7af8039962b3f2bd8df4050977c279c (diff)
rename .cgi back to .html, #38532
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-xhttemplate/misc/process/void-cust_bill.html2
-rwxr-xr-xhttemplate/misc/void-cust_bill.cgi46
-rwxr-xr-x[-rw-r--r--]httemplate/misc/void-cust_bill.html9
-rwxr-xr-xhttemplate/misc/void-cust_credit.html (renamed from httemplate/misc/void-cust_credit.cgi)2
-rwxr-xr-xhttemplate/misc/void-cust_pay.html (renamed from httemplate/misc/void-cust_pay.cgi)2
5 files changed, 8 insertions, 53 deletions
diff --git a/httemplate/misc/process/void-cust_bill.html b/httemplate/misc/process/void-cust_bill.html
index c0f432b70..7773b0ba9 100755
--- a/httemplate/misc/process/void-cust_bill.html
+++ b/httemplate/misc/process/void-cust_bill.html
@@ -1,6 +1,6 @@
%if ( $error ) {
% $cgi->param('error', $error);
-<% $cgi->redirect(popurl(2). "void-cust_bill.cgi?". $cgi->query_string ) %>
+<% $cgi->redirect(popurl(2). "void-cust_bill.html?". $cgi->query_string ) %>
%} else {
<& /elements/header-popup.html, 'Invoice voided' &>
<SCRIPT TYPE="text/javascript">
diff --git a/httemplate/misc/void-cust_bill.cgi b/httemplate/misc/void-cust_bill.cgi
deleted file mode 100755
index e4e4705d7..000000000
--- a/httemplate/misc/void-cust_bill.cgi
+++ /dev/null
@@ -1,46 +0,0 @@
-<& /elements/header-popup.html, mt('Void invoice') &>
-
-<% include('/elements/error.html') %>
-
-<% emt('Are you sure you want to void this invoice?') %>
-<BR><BR>
-
-<% emt("Invoice #[_1] ([_2])",$cust_bill->display_invnum, $money_char. $cust_bill->owed) %>
-<BR><BR>
-
-<FORM METHOD="POST" ACTION="process/void-cust_bill.html">
-<INPUT TYPE="hidden" NAME="invnum" VALUE="<% $invnum %>">
-
-<% ntable("#cccccc", 2) %>
-<& /elements/tr-select-reason.html,
- 'field' => 'reasonnum',
- 'reason_class' => 'I',
- 'cgi' => $cgi
-&>
-
-</TABLE>
-
-<BR>
-<CENTER>
-<BUTTON TYPE="submit">Yes, void invoice</BUTTON>&nbsp;&nbsp;&nbsp;\
-<BUTTON TYPE="button" onClick="parent.cClick();">No, do not void invoice</BUTTON>
-</CENTER>
-
-</FORM>
-</BODY>
-</HTML>
-<%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});
-
-</%init>
diff --git a/httemplate/misc/void-cust_bill.html b/httemplate/misc/void-cust_bill.html
index 39b071229..e4e4705d7 100644..100755
--- a/httemplate/misc/void-cust_bill.html
+++ b/httemplate/misc/void-cust_bill.html
@@ -12,10 +12,11 @@
<INPUT TYPE="hidden" NAME="invnum" VALUE="<% $invnum %>">
<% ntable("#cccccc", 2) %>
-<TR>
- <TD ALIGN="right">Reason</TD>
- <TD><INPUT TYPE="text" NAME="reason" VALUE="<% scalar($cgi->param('reason')) |h %>"></TD>
-</TR>
+<& /elements/tr-select-reason.html,
+ 'field' => 'reasonnum',
+ 'reason_class' => 'I',
+ 'cgi' => $cgi
+&>
</TABLE>
diff --git a/httemplate/misc/void-cust_credit.cgi b/httemplate/misc/void-cust_credit.html
index f352e6090..1e71f0030 100755
--- a/httemplate/misc/void-cust_credit.cgi
+++ b/httemplate/misc/void-cust_credit.html
@@ -12,7 +12,7 @@
<P ALIGN="center"><B><% mt('Void this credit?') |h %></B>
-<FORM action="<% ${p} %>misc/void-cust_credit.cgi">
+<FORM action="<% ${p} %>misc/void-cust_credit.html">
<INPUT TYPE="hidden" NAME="crednum" VALUE="<% $crednum %>">
<TABLE BGCOLOR="#cccccc" BORDER="0" CELLSPACING="2" STYLE="margin-left:auto; margin-right:auto">
diff --git a/httemplate/misc/void-cust_pay.cgi b/httemplate/misc/void-cust_pay.html
index dc0ff4d35..205d93aa3 100755
--- a/httemplate/misc/void-cust_pay.cgi
+++ b/httemplate/misc/void-cust_pay.html
@@ -12,7 +12,7 @@
<P ALIGN="center"><B><% mt('Void this payment?') |h %></B>
-<FORM action="<% ${p} %>misc/void-cust_pay.cgi">
+<FORM action="<% ${p} %>misc/void-cust_pay.html">
<INPUT TYPE="hidden" NAME="paynum" VALUE="<% $paynum %>">
<TABLE BGCOLOR="#cccccc" BORDER="0" CELLSPACING="2" STYLE="margin-left:auto; margin-right:auto">