summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pay_batch.pm
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-03-15 11:29:50 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-03-15 11:42:58 -0400
commit78a34a84e6ef83520ab383e31f4d27e838f333ff (patch)
tree0fce7c54931fc60793568048a282b05ec76ca339 /FS/FS/cust_pay_batch.pm
parent7733d727907d15271602cb28c5e32afb288220dd (diff)
RT# 83044 - fixed cc refund issues
Diffstat (limited to 'FS/FS/cust_pay_batch.pm')
-rw-r--r--FS/FS/cust_pay_batch.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm
index 6e76b34..2931fe7 100644
--- a/FS/FS/cust_pay_batch.pm
+++ b/FS/FS/cust_pay_batch.pm
@@ -293,6 +293,9 @@ sub approve {
if ( $error ) {
return "error approving paybatchnum $paybatchnum: $error\n";
}
+
+ return if $new->paycode eq "C";
+
my $cust_pay = new FS::cust_pay ( {
'custnum' => $new->custnum,
'payby' => $new->payby,