[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 4d6c585ae38708a210e331af82b427cd88c465c7

Mark Wells mark at 420.am
Wed Mar 6 13:05:59 PST 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  4d6c585ae38708a210e331af82b427cd88c465c7 (commit)
      from  d5c51ff8d85f1f9ad64961878dcba6adb7968523 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4d6c585ae38708a210e331af82b427cd88c465c7
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Mar 6 13:04:58 2013 -0800

    fix payment lookup when revoking batch payments, #18548 and #21117

diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm
index 1db74ef..30ddc37 100644
--- a/FS/FS/cust_pay_batch.pm
+++ b/FS/FS/cust_pay_batch.pm
@@ -343,6 +343,11 @@ sub decline {
       # Void the payment
       my $cust_pay = qsearchs('cust_pay', { 
           custnum  => $new->custnum,
+          batchnum => $new->batchnum
+        });
+      # pre-3.0 style
+      $cust_pay ||= qsearchs('cust_pay', { 
+          custnum  => $new->custnum,
           paybatch => $new->batchnum
         });
       if ( !$cust_pay ) {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_pay_batch.pm |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list