Switch to a token for billingName & address
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 30 Sep 2023 04:55:10 +0000 (17:55 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 6 Oct 2023 03:50:47 +0000 (16:50 +1300)
commitec090e0223d4c8471056d96df5054520dade4df2
tree1e5ed771db7e9647b1515026224ac5cb651552a9
parenta00bd784aa9f7a696457236154b1a840f32fabd7
Switch to a token for billingName & address

This adds the token to the contribution entity & updates the event receipts
to use it (including the ones we are gonna kill cos
it was a simple replace).

Note I updated the format function to
access apiv4 style label fields & let the
chips fall where they may re event & county
(ie you probably wouldn't set county but if you
did AND your address format is configured to show it who are
we to say otherwise)
16 files changed:
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/Tokens.php
CRM/Contribute/WorkflowMessage/Contribution/BasicContribution.php
CRM/Core/EntityTokens.php
CRM/Event/Form/Participant.php
CRM/Event/Tokens.php
CRM/Event/WorkflowMessage/EventExamples.php
CRM/Utils/Address.php
tests/phpunit/CRM/Contribute/ActionMapping/ByTypeTest.php
tests/phpunit/CRM/Event/Form/ParticipantTest.php
tests/phpunit/CRM/Utils/TokenConsistencyTest.php
tests/templates/message_templates/event_online_receipt_text.tpl
xml/templates/message_templates/event_offline_receipt_html.tpl
xml/templates/message_templates/event_offline_receipt_text.tpl
xml/templates/message_templates/event_online_receipt_html.tpl
xml/templates/message_templates/event_online_receipt_text.tpl