Cleanup on Membership Receipts
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 9 Feb 2022 02:32:29 +0000 (15:32 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 11 Feb 2022 01:01:48 +0000 (14:01 +1300)
commit7b2d6751e692cf2e294e589466724d2f78c4fdbf
tree3bff5c47d6504920250b209419bc56f217f5bba3
parentf1528c1f9fa0a9a28c91d20a3b4be8a014e98a3f
Cleanup on Membership Receipts

This

1) adds shell classes for the membership receipts
2) uses a standardised 'receipt_text' across both forms
(this value is entered on the form rather than being from the db
so it is temporaral - which a smarty variable is a good use for)
3) removes isset from the templates - these currently cause
crashes with grumpy smarty mode
16 files changed:
CRM/Batch/Form/Entry.php
CRM/Contribute/Form/AbstractEditPayment.php
CRM/Member/Form/Membership.php
CRM/Member/Form/MembershipRenewal.php
CRM/Member/WorkflowMessage/MembershipOfflineReceipt.php [new file with mode: 0644]
CRM/Member/WorkflowMessage/MembershipOnlineReceipt.php [new file with mode: 0644]
CRM/Member/WorkflowMessage/MembershipTrait.php [new file with mode: 0644]
CRM/Utils/Token.php
Civi/WorkflowMessage/GenericWorkflowMessage.php
sql/civicrm_generated.mysql
tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php
tests/phpunit/CRM/Member/Form/MembershipTest.php
tests/templates/message_templates/membership_offline_receipt_html.tpl [new file with mode: 0644]
tests/templates/message_templates/membership_offline_receipt_text.tpl [new file with mode: 0644]
xml/templates/message_templates/membership_offline_receipt_html.tpl
xml/templates/message_templates/membership_offline_receipt_text.tpl