diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-02-27 23:11:38 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-02-27 23:11:38 -0800 |
commit | bc601b882202995ed763b2bef94b9642cb325fd1 (patch) | |
tree | 12023bfc58d069640c0e68f02e1296ed797458a1 | |
parent | 6f7c51547a8604f0fb8e6350aa6b1f4618c6833f (diff) |
still allow void of ancient invoices from unusual circumstances
-rw-r--r-- | FS/FS/cust_bill_pay.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_bill_pay.pm b/FS/FS/cust_bill_pay.pm index 3f787d3b7..873d718ef 100644 --- a/FS/FS/cust_bill_pay.pm +++ b/FS/FS/cust_bill_pay.pm @@ -89,9 +89,9 @@ Deletes this payment application, unless the closed flag for the parent payment sub delete { my $self = shift; return "Can't delete application for closed payment" - if $self->cust_pay->closed =~ /^Y/i; + if $self->cust_pay && $self->cust_pay->closed =~ /^Y/i; return "Can't delete application for closed invoice" - if $self->cust_bill->closed =~ /^Y/i; + if $self->cust_bill && $self->cust_bill->closed =~ /^Y/i; $self->SUPER::delete(@_); } |