/**
* Send email receipt.
*
+ * @deprecated
+ * This function is shared with Batch_Entry which has limited overlap
+ * & needs rationalising.
+ *
* @param CRM_Core_Form $form
* Form object.
* @param array $formValues
$formValues['receipt_text_signup'] = $formValues['receipt_text'];
// send email receipt
$this->assignBillingName();
- $mailSend = self::emailReceipt($this, $formValues, $membership);
+ $mailSend = $this->emailMembershipReceipt();
$receiptSent = TRUE;
}
return $isRecur;
}
+ /**
+ * Send a receipt for the membership.
+ *
+ * @param array $formValues
+ * @param array $membership
+ * @return array
+ */
+ protected function emailMembershipReceipt($formValues, $membership) {
+ $mailSend = self::emailReceipt($this, $formValues, $membership);
+ return [$membership, $mailSend];
+ }
+
}