diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2019-05-14 10:34:28 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2019-05-22 07:52:38 -0400 |
| commit | af1b255c779c5c6d0ddd354d670e6b909c26c4e3 (patch) | |
| tree | 3c1e6ce1f698094a6509976aa184726050884e87 | |
| parent | a25adda7b5c3235e7a048d4125039e808ebca8e8 (diff) | |
RT# 83306 - fixed realtime refunds
| -rwxr-xr-x | httemplate/edit/process/cust_refund.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/process/cust_refund.cgi b/httemplate/edit/process/cust_refund.cgi index bea81bc12..607f31dd1 100755 --- a/httemplate/edit/process/cust_refund.cgi +++ b/httemplate/edit/process/cust_refund.cgi @@ -39,7 +39,12 @@ $cgi->param('reasonnum') =~ /^(-?\d+)$/ or die "Illegal reasonnum"; my ($reasonnum, $error) = $m->comp('/misc/process/elements/reason'); $cgi->param('reasonnum', $reasonnum) unless $error; -$error = "No batch download format configured that allows electronic refunds" unless (FS::pay_batch->can_handle_electronic_refunds && !$error); +if ( $cgi->param('batch') ) { + $error = "No batch download format configured that allows electronic refunds via batch processing." + unless (FS::pay_batch->can_handle_electronic_refunds && !$error); +} + +#die "my error\n".$error; if ( $error ) { # do nothing |
