X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fcust_pay_batch_refund_delete;fp=bin%2Fcust_pay_batch_refund_delete;h=4e1f1e0c611b6bfc28e822de276b9590361c9f05;hp=c1ddba449d9331d73a1f279787c9051b3811799e;hb=7c48f3fd1d142da45238a754ab1fbe26f4cfb1bc;hpb=ae27246c0cab56f6935c47148e6ae54ec25b2238 diff --git a/bin/cust_pay_batch_refund_delete b/bin/cust_pay_batch_refund_delete index c1ddba449..4e1f1e0c6 100755 --- a/bin/cust_pay_batch_refund_delete +++ b/bin/cust_pay_batch_refund_delete @@ -37,7 +37,7 @@ foreach (@batch_refunds) { ## delete the refund from the batch. unless ($delete_cust_refund_error) { - my $delete_cust_pay_batch_error = $_->delete; + my $delete_cust_pay_batch_error = $_->unbatch_and_delete; warn "could not delete cust refund $delete_cust_pay_batch_error\n" if $delete_cust_pay_batch_error; }