X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpayby.pm;h=349d266a332448506eebc08d89844b3e274362ee;hb=978fea1c303551f90c95ae852b6463951b78246b;hp=6684c95f0e511a1ac09fb955a9f84f6a742f10f7;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;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;