1 <% $pay_batch->export_batch($format) %><%init>
3 #http_header('Content-Type' => 'text/comma-separated-values' ); #IE chokes
4 http_header('Content-Type' => 'text/plain' ); # not necessarily correct...
7 if ( $cgi->param('batchnum') =~ /^(\d+)$/ ) {
10 die "No batch number (bad URL) \n";
14 if ( $cgi->param('format') =~ /^([\w\- ]+)$/ ) {
18 my $pay_batch = qsearchs('pay_batch', { batchnum => $batchnum } );
19 die "Batch not found: '$batchnum'" if !$pay_batch;