summaryrefslogtreecommitdiff
path: root/httemplate/search/pay_batch.cgi
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-03-10 19:12:20 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-03-10 19:12:20 -0400
commitb48c02a92562395c84dbfe8c47db5c4ba14891a0 (patch)
treeb2fda5bb8a2ed969b702e7006be988e47ee920a5 /httemplate/search/pay_batch.cgi
parent765aac1902113738afd1bcaee8eb25b44ee92e63 (diff)
RT# 82988 - Fixed so only formats that can handle electronic refunds can download those files
Diffstat (limited to 'httemplate/search/pay_batch.cgi')
-rwxr-xr-xhttemplate/search/pay_batch.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/search/pay_batch.cgi b/httemplate/search/pay_batch.cgi
index 40df5aa56..8fe435132 100755
--- a/httemplate/search/pay_batch.cgi
+++ b/httemplate/search/pay_batch.cgi
@@ -33,9 +33,11 @@
],
'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;