X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fpay_batch.cgi;h=fd14d05bc0b17fce35a3c9b843ebfbc8420eb8d6;hp=40df5aa56dda0634f2d30579710d5581628672ba;hb=HEAD;hpb=35e5b12fb55f229edd16bed66e21c5806b8d3b7e diff --git a/httemplate/search/pay_batch.cgi b/httemplate/search/pay_batch.cgi index 40df5aa56..fd14d05bc 100755 --- a/httemplate/search/pay_batch.cgi +++ b/httemplate/search/pay_batch.cgi @@ -33,16 +33,20 @@ ], 'align' => 'rcllrrrrc', 'fields' => [ 'batchnum', - sub { - FS::payby->shortname(shift->payby); - }, + sub { + my $self = shift; + my $type = $self->type eq 'CREDIT' ? 'CREDIT' : ''; + $type ." " . FS::payby->shortname($self->payby); + }, sub { my $self = shift; my $_date = $self->download; if ( $_date ) { time2str("%a %b %e %T %Y", $_date); - } elsif ( $self->status eq 'O' ) { - 'Download batch'; + } elsif ( $self->status eq 'O' && $self->type eq 'CREDIT') { + 'Download credit batch'; + } elsif ( $self->status eq 'O' && $self->type eq 'DEBIT') { + 'Download batch'; } else { ''; }