X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpayby.pm;h=349d266a332448506eebc08d89844b3e274362ee;hb=052ebe1ded9859bff023141274edf891e743275a;hp=6684c95f0e511a1ac09fb955a9f84f6a742f10f7;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git diff --git a/FS/FS/payby.pm b/FS/FS/payby.pm index 6684c95f0..349d266a3 100644 --- a/FS/FS/payby.pm +++ b/FS/FS/payby.pm @@ -124,7 +124,7 @@ sub can_payby { #return "Illegal payby" unless $hash{$payby}; return 0 unless $hash{$payby}; - $table = 'cust_pay' if $table eq 'cust_pay_batch' || $table eq 'cust_refund'; + $table = 'cust_pay' if $table =~ /^cust_(pay_pending|pay_batch|pay_void|refund)$/; return 0 if exists( $hash{$payby}->{$table} ); return 1;