diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-02-27 23:11:37 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-02-27 23:11:37 -0800 |
commit | 57ecc58afc271d95a365419a7ffeec32c2c3b9b7 (patch) | |
tree | 8cacc7ba04883eaeefee13592f8514ddbd49293a /FS/FS/cust_bill_pay.pm | |
parent | d682f657ca607bbae37ad4d0a3fc19190abd37c4 (diff) |
still allow void of ancient invoices from unusual circumstances
Diffstat (limited to 'FS/FS/cust_bill_pay.pm')
-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 25bd619..23f8814 100644 --- a/FS/FS/cust_bill_pay.pm +++ b/FS/FS/cust_bill_pay.pm @@ -83,9 +83,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(@_); } |