diff options
author | cvs2git <cvs2git> | 2003-09-28 02:36:19 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2003-09-28 02:36:19 +0000 |
commit | fd94bbedd9b69518c50919705e4e078272379f18 (patch) | |
tree | b0e94e067f0ab8d77d3af6ceb46a96dd10150135 | |
parent | a612439d46793dc56d642854d35b40ea052e12d9 (diff) | |
parent | c8f80bd5aaeb0f3844a7cece4bfe250d4f89f745 (diff) |
This commit was manufactured by cvs2svn to create branch
'FREESIDE_1_4_BRANCH'.
-rw-r--r-- | httemplate/misc/upload-batch.cgi | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/httemplate/misc/upload-batch.cgi b/httemplate/misc/upload-batch.cgi new file mode 100644 index 000000000..565a6da5c --- /dev/null +++ b/httemplate/misc/upload-batch.cgi @@ -0,0 +1,28 @@ +<% + + my $fh = $cgi->upload('batch_results'); + my $filename = $cgi->param('batch_results'); + my $paybatch = basename($filename); + + my $error = defined($fh) + ? FS::cust_pay_batch::import_results( { + 'filehandle' => $fh, + 'format' => $cgi->param('format'), + 'paybatch' => $paybatch, + } ) + : 'No file'; + + if ( $error ) { + %> + <!-- mason kludge --> + <% + eidiot($error); +# $cgi->param('error', $error); +# print $cgi->redirect( "${p}cust_main-import.cgi + } else { + %> + <!-- mason kludge --> + <%= header('Batch results upload sucessful') %> <% + } +%> + |