X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pay_batch.pm;h=13b2eefe5697e5215d0b9c5155318d25bd97ef76;hb=4ff12dc7e14232390daca2f14a278cde46a8e573;hp=da003d85e431777ac8b54d27885206b31999f982;hpb=b0e67356e3a16101eb06a12e2a48cc6dc4233c29;p=freeside.git diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm index da003d85e..13b2eefe5 100644 --- a/FS/FS/cust_pay_batch.pm +++ b/FS/FS/cust_pay_batch.pm @@ -344,14 +344,8 @@ sub decline { } $cust_pay->void($reason); } - elsif ( lc($old->status) eq 'declined' ) { - # batch files from RBC can have multiple lines for one decline - # if this causes problems elsewhere, try hacking pay_batch/RBC.pm instead - return ''; - } else { # normal case: refuse to do anything - # should never happen...only statuses are approved or declined return "cannot decline paybatchnum $paybatchnum, already resolved ('".$old->status."')"; } } # !$old->status