verify credit card changes via $1 auth, RT#37632
[freeside.git] / FS / FS / cust_bill_pay.pm
index 831d7f2..873d718 100644 (file)
@@ -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(@_);
 }
 
@@ -152,7 +152,6 @@ sub cust_pay {
 
 =item send_receipt HASHREF | OPTION => VALUE ...
 
-
 Sends a payment receipt for the associated payment, against this specific
 invoice.  If there is an error, returns the error, otherwise returns false.