diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-03-01 03:58:35 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-03-01 04:03:08 -0500 |
commit | 27bc1d4bf59903285f836cea40eda12b0e7726b9 (patch) | |
tree | 367619c5c01cd91c0216d6c11f5ae17ca32d4767 /bin | |
parent | 9564f4f46015c116761cd000e58b6fb669525bfd (diff) |
RT# 82955 - will only try to delete if refund found
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cust_pay_batch_refund_delete | 4 |
1 files changed, 2 insertions, 2 deletions
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. |