X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-rbc-upload;h=8f67a6e4ff3d533fc7660ef5a5158b6db4f069b0;hp=3fff32a67f68bbbb24364b60345c26e87e432471;hb=b48c02a92562395c84dbfe8c47db5c4ba14891a0;hpb=765aac1902113738afd1bcaee8eb25b44ee92e63 diff --git a/FS/bin/freeside-rbc-upload b/FS/bin/freeside-rbc-upload index 3fff32a67..8f67a6e4f 100755 --- a/FS/bin/freeside-rbc-upload +++ b/FS/bin/freeside-rbc-upload @@ -33,6 +33,7 @@ my @batches; if($opt_a) { my %criteria = (status => 'O'); $criteria{'payby'} = uc($opt_p) if $opt_p; + $criteria{'type'} = 'DEBIT' unless FS::pay_batch->can_handle_electronic_refunds('RBC'); @batches = qsearch('pay_batch', \%criteria); die "No open batches found".($opt_p ? " of type '$opt_p'" : '').".\n" if !@batches;