diff options
author | jeff <jeff> | 2010-08-02 19:49:26 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-08-02 19:49:26 +0000 |
commit | 0a3b346806615bd893048d2a5c26f8d126a12f4b (patch) | |
tree | 6912cbc88774bfa513e95a58e05e7ce76fbc04c1 /httemplate/misc/process/cust_main-import-oldonp.cgi | |
parent | 995a145c931164347683071c95c6754379d36604 (diff) |
add svc_elec_features merged from reference code RT#7643svc_elec_features
Diffstat (limited to 'httemplate/misc/process/cust_main-import-oldonp.cgi')
-rwxr-xr-x | httemplate/misc/process/cust_main-import-oldonp.cgi | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/httemplate/misc/process/cust_main-import-oldonp.cgi b/httemplate/misc/process/cust_main-import-oldonp.cgi new file mode 100755 index 000000000..9bc4a453b --- /dev/null +++ b/httemplate/misc/process/cust_main-import-oldonp.cgi @@ -0,0 +1,35 @@ +% +% +% my $fh = $cgi->upload('csvfile'); +% #warn $cgi; +% #warn $fh; +% +% my $error = defined($fh) +% ? FS::cust_main::batch_import_onp( { +% filehandle => $fh, +% agentnum => scalar($cgi->param('agentnum')), +% refnum => scalar($cgi->param('refnum')), +% pkgpart => scalar($cgi->param('pkgpart')), +% #'fields' => [qw( cust_pkg.setup dayphone first last address1 address2 +% # city state zip comments )], +% 'format' => scalar($cgi->param('format')), +% } ) +% : 'No file'; +% +% if ( $error ) { +% + + <!-- mason kludge --> +% +% eidiot($error); +%# $cgi->param('error', $error); +%# print $cgi->redirect( "${p}cust_main-import.cgi +% } else { +% + + <!-- mason kludge --> + <% include("/elements/header.html",'Import successful') %> +% +% } +% + |