[freeside-commits] branch master updated. 3202541e11a56d3b5b49a0386599bab45249ea55
Christopher Burger
burgerc at freeside.biz
Fri Mar 1 00:59:49 PST 2019
The branch, master has been updated
via 3202541e11a56d3b5b49a0386599bab45249ea55 (commit)
from 7c48f3fd1d142da45238a754ab1fbe26f4cfb1bc (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 3202541e11a56d3b5b49a0386599bab45249ea55
Author: Christopher Burger <burgerc at freeside.biz>
Date: Fri Mar 1 03:58:35 2019 -0500
RT# 82955 - will only try to delete if refund found
diff --git a/bin/cust_pay_batch_refund_delete b/bin/cust_pay_batch_refund_delete
index 4e1f1e0c6..df893f555 100755
--- a/bin/cust_pay_batch_refund_delete
+++ b/bin/cust_pay_batch_refund_delete
@@ -29,10 +29,10 @@ foreach (@batch_refunds) {
'extra_sql' => $extra_batch_refund_sql,
});
- warn "found cust refund number ".$cust_refund->{Hash}->{refundnum}.", now to delete it.\n";
+ warn "found cust refund number ".$cust_refund->{Hash}->{refundnum}.", now to delete it.\n" if $cust_refund;
## delete the cust_pay_refund
- my $delete_cust_refund_error = $cust_refund->delete;
+ my $delete_cust_refund_error = $cust_refund->delete if cust_refund;
warn "could not delete cust refund $delete_cust_refund_error\n" if $delete_cust_refund_error;
## delete the refund from the batch.
-----------------------------------------------------------------------
Summary of changes:
bin/cust_pay_batch_refund_delete | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list