[freeside-commits] branch master updated. 5fe75497ce60689c128d93a3f1c9339e7c5e4e49
Mark Wells
mark at 420.am
Wed Mar 6 12:17:13 PST 2013
The branch, master has been updated
via 5fe75497ce60689c128d93a3f1c9339e7c5e4e49 (commit)
from 57e39d6d93feee6f6d4ccc32dceced3fde53de2d (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 5fe75497ce60689c128d93a3f1c9339e7c5e4e49
Author: Mark Wells <mark at freeside.biz>
Date: Wed Mar 6 12:16:21 2013 -0800
fix payment lookup when revoking batch payments, #18458
diff --git a/FS/FS/cust_pay_batch.pm b/FS/FS/cust_pay_batch.pm
index 4138436..e1e32d3 100644
--- a/FS/FS/cust_pay_batch.pm
+++ b/FS/FS/cust_pay_batch.pm
@@ -369,6 +369,12 @@ sub decline {
# Void the payment
my $cust_pay = qsearchs('cust_pay', {
custnum => $new->custnum,
+ batchnum => $new->batchnum
+ });
+ # these should all be migrated over, but if it's not found, look for
+ # batchnum in the 'paybatch' field also
+ $cust_pay ||= qsearchs('cust_pay', {
+ custnum => $new->custnum,
paybatch => $new->batchnum
});
if ( !$cust_pay ) {
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_pay_batch.pm | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list