summaryrefslogtreecommitdiff
path: root/httemplate/misc/delete-cust_bill.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-07-21 15:16:12 -0700
committerIvan Kohler <ivan@freeside.biz>2015-07-21 15:24:29 -0700
commitdba9cc11f7ad2337506e40ed2aa6bc9e890cc977 (patch)
treede34bf8768e6b9c8b63e33038b389390be69b8e6 /httemplate/misc/delete-cust_bill.html
parenta6fdffc9f64dd8eecfd762fa6ee02b110cec7219 (diff)
remove invoice deletion (and ancient & unused config settings), RT#37157
Diffstat (limited to 'httemplate/misc/delete-cust_bill.html')
-rw-r--r--httemplate/misc/delete-cust_bill.html21
1 files changed, 0 insertions, 21 deletions
diff --git a/httemplate/misc/delete-cust_bill.html b/httemplate/misc/delete-cust_bill.html
deleted file mode 100644
index 3a642b0e9..000000000
--- a/httemplate/misc/delete-cust_bill.html
+++ /dev/null
@@ -1,21 +0,0 @@
-% if ( $error ) {
-% errorpage($error);
-% } else {
-<% $cgi->redirect($p. "view/cust_main.cgi?". $custnum) %>
-% }
-<%init>
-
-die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Delete invoices');
-
-#untaint invnum
-my($query) = $cgi->keywords;
-$query =~ /^(\d+)$/ || die "Illegal crednum";
-my $invnum = $1;
-
-my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
-my $custnum = $cust_bill->custnum;
-
-my $error = $cust_bill->delete;
-
-</%init>