manual batch approval and TD EFT fixes, RT#10545
[freeside.git] / httemplate / misc / download-batch.cgi
1 <% $pay_batch->export_batch($format) %><%init>
2
3 #http_header('Content-Type' => 'text/comma-separated-values' ); #IE chokes
4 http_header('Content-Type' => 'text/plain' ); # not necessarily correct...
5
6 my $batchnum;
7 if ( $cgi->param('batchnum') =~ /^(\d+)$/ ) {
8   $batchnum = $1;
9 } else {
10   die "No batch number (bad URL) \n";
11 }
12
13 my $format;
14 if ( $cgi->param('format') =~ /^([\w\- ]+)$/ ) {
15   $format = $1;
16 }
17
18 my $pay_batch = qsearchs('pay_batch', { batchnum => $batchnum } );
19 die "Batch not found: '$batchnum'" if !$pay_batch;
20
21 </%init>