[freeside-commits] branch master updated. f3bd5f3e5da4f3d65ac3c4ae57df309921177cf1

Ivan ivan at 420.am
Sat Feb 27 23:11:37 PST 2016


The branch, master has been updated
       via  f3bd5f3e5da4f3d65ac3c4ae57df309921177cf1 (commit)
      from  cf409374019e51863c71fdce28272ad71e53bfa7 (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 f3bd5f3e5da4f3d65ac3c4ae57df309921177cf1
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Feb 27 23:11:36 2016 -0800

    still allow void of ancient invoices from unusual circumstances

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(@_);
 }
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_bill_pay.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list