X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fpay_batch.cgi;h=fd14d05bc0b17fce35a3c9b843ebfbc8420eb8d6;hb=a98de57aee063b3ff737c283336f83b2e50e14a8;hp=40df5aa56dda0634f2d30579710d5581628672ba;hpb=c23753d010e11b83ed19e0f3347adc7161ce7de9;p=freeside.git 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 { ''; }