summaryrefslogtreecommitdiff
path: root/httemplate/misc/process/cust_main-import_charges.cgi
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-11-01 12:56:48 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-11-01 13:08:48 -0400
commitb282a5536ad5145f956ef27704e2267a124aacf5 (patch)
tree209b2e0cff81da3086f67136f8ab265ef73b4bb0 /httemplate/misc/process/cust_main-import_charges.cgi
parent5b7aba597d277efa440c27cdc264bf116e5a477a (diff)
RT# 75095 - Added Ooma integration to one time charges
Diffstat (limited to 'httemplate/misc/process/cust_main-import_charges.cgi')
-rw-r--r--httemplate/misc/process/cust_main-import_charges.cgi20
1 files changed, 3 insertions, 17 deletions
diff --git a/httemplate/misc/process/cust_main-import_charges.cgi b/httemplate/misc/process/cust_main-import_charges.cgi
index d877ad17d..42ca82592 100644
--- a/httemplate/misc/process/cust_main-import_charges.cgi
+++ b/httemplate/misc/process/cust_main-import_charges.cgi
@@ -1,24 +1,10 @@
-% if ( $error ) {
-% errorpage($error);
-% } else {
- <% include('/elements/header.html','Import successful') %>
- <% include('/elements/footer.html') %>
-% }
+<% $server->process %>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
-my $fh = $cgi->upload('csvfile');
-#warn $cgi;
-#warn $fh;
-
-my $error = defined($fh)
- ? FS::cust_main::Import_Charges::batch_charge( {
- filehandle => $fh,
- 'agentnum' => scalar($cgi->param('agentnum')),
- 'format' => scalar($cgi->param('format')),
- } )
- : 'No file';
+my $server =
+ new FS::UI::Web::JSRPC 'FS::cust_main::Import_Charges::batch_charge', $cgi;
</%init>