RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / misc / xmlhttp-pay_batch-note.html
1 <% $note %>\
2 <%init>
3
4 my ($batchnum, $format) = $cgi->param('arg');
5
6 my $note = '';
7 if ( $batchnum =~ /^(\d+)$/ ) {
8   my $pay_batch = FS::pay_batch->by_key($batchnum);
9   if ( $pay_batch and $format =~ /^(\w+)$/ ) {
10     my $class = "FS::pay_batch::$format";
11     if ( $class->can('download_note') ) {
12       # now we can actually do something
13       $note = $class->download_note($pay_batch);
14     }
15   }
16 }
17
18 </%init>