Backend membership renewal does not attach the invoice PDF
To reproduce:
- Enable Taxes and Invoicing (Administer > CiviContribute > CiviContribute Component Settings)
- Enable "Automatically email invoice when user purchases online"
Then go to a contact record
- Make sure the contact has an email address on their record (you probably want to update to your own email address)
- Add a Membership (without CC payment), record a payment (ex: cheque or whatever).
They should receive an email confirmation, with the invoice.pdf attached.
Now go back to their contact record, and renew the membership (again, no need for a CC payment). They will be emailed with a receipt, but the invoice.pdf will not be attached.
As a tangential issue: for taxes we have custom smarty (from the taxcalculator extension) that requires the $contributionID
in the template. It works fine for the "offline new membership" but not for renewal, the variable is undefined.
I tried comparing the submit
functions for CRM/Membership/Form/Membership.php
vs MembershipRenewal.php
, but it's not an easy one. They have a lot of similarities, but also major differences in how they process the contribution.