From bb201b08e3f48784cd77979dd4e31e866aa4f15d Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 13 Mar 2019 09:17:02 -0400 Subject: RT# 82988 - updated paybatch upgrade to move credits from combined batch file to credit batch file --- httemplate/search/elements/cust_pay_batch_top.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'httemplate/search/elements') diff --git a/httemplate/search/elements/cust_pay_batch_top.html b/httemplate/search/elements/cust_pay_batch_top.html index eee81dd5b..90fc9e449 100644 --- a/httemplate/search/elements/cust_pay_batch_top.html +++ b/httemplate/search/elements/cust_pay_batch_top.html @@ -149,6 +149,10 @@ $upload_formats{'PAP'} = '264 byte results for TD Canada Trust PAP Batch'; if ($pay_batch->type eq "CREDIT") { foreach my $key (keys %download_formats) { delete $download_formats{$key} unless FS::pay_batch->can_handle_electronic_refunds($key); + ## remove default format if unable to handle electronic refunds + if ($key eq '') { + delete $download_formats{$key} unless FS::pay_batch->can_handle_electronic_refunds($conf->config("batch-default_format")); + } } } -- cgit v1.2.1