X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fdownload-batch.cgi;h=6ff649808f68c024bca0dc81b2274bef1ebf189f;hb=0bd6fd8b74c3cb6a7abf01ba5974d2d9399da3ab;hp=c6a0b68c319a72a4f5b4500a38eac30762a261f7;hpb=2a9d2460814b37e07d7cb83392723146a60d34c7;p=freeside.git diff --git a/httemplate/misc/download-batch.cgi b/httemplate/misc/download-batch.cgi index c6a0b68c3..6ff649808 100644 --- a/httemplate/misc/download-batch.cgi +++ b/httemplate/misc/download-batch.cgi @@ -4,6 +4,7 @@ http_header('Content-Type' => 'text/plain' ); # not necessarily correct... my $batchnum; + if ( $cgi->param('batchnum') =~ /^(\d+)$/ ) { $batchnum = $1; } else { @@ -27,11 +28,6 @@ my $pay_batch = qsearchs({ 'select' => "*, $credit_transactions", }); die "Batch not found: '$batchnum'" if !$pay_batch; -if ($pay_batch->{Hash}->{arecredits}) { - my $export_format = "FS::pay_batch::".$opt{'format'}; - die "This format can not handle refunds." unless $export_format->can('can_handle_credits'); -} - my $exporttext = $pay_batch->export_batch(%opt); unless ($exporttext) { http_header('Content-Type' => 'text/html' );