From 1050e60086386799dbba6e5bbcfc5a29e78eddb5 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 1 Nov 2017 12:56:48 -0400 Subject: RT# 75095 - Added Ooma integration to one time charges Conflicts: FS/FS/cust_main/Import_Charges.pm httemplate/misc/process/cust_main-import_charges.cgi --- httemplate/misc/process/cust_main-import_charges.cgi | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'httemplate/misc/process') diff --git a/httemplate/misc/process/cust_main-import_charges.cgi b/httemplate/misc/process/cust_main-import_charges.cgi index bda3e3b70..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::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; -- cgit v1.2.1