From f06affa122e01bf8bfac02fd6b2e2b9c3b66b294 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 22 Sep 2023 07:03:12 +1200 Subject: [PATCH] Fix a couple more places to use tokens I could make no sense of the whole default role ID thing I removed it --- .../message_templates/event_online_receipt_text.tpl | 2 +- .../message_templates/event_online_receipt_html.tpl | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/templates/message_templates/event_online_receipt_text.tpl b/tests/templates/message_templates/event_online_receipt_text.tpl index 0ef11134d8..80bdb64bb4 100644 --- a/tests/templates/message_templates/event_online_receipt_text.tpl +++ b/tests/templates/message_templates/event_online_receipt_text.tpl @@ -31,7 +31,7 @@ event.event_start_date:::{$event.event_start_date|crmDate:"%A"} event.event_end_date:::{event.end_date|crmDate:"%Y%m%d"} event.is_monetary:::{event.is_monetary|boolean} event.fee_label:::{event.fee_label} -event.participant_role::{event.participant_role_id:label} +event.participant_role:::{event.participant_role_id:label} {if !empty($isShowLocation)} isShowLocation:::{$isShowLocation} location.address.1.display:::{$location.address.1.display} diff --git a/xml/templates/message_templates/event_online_receipt_html.tpl b/xml/templates/message_templates/event_online_receipt_html.tpl index 779e17cd2f..4f741779b8 100644 --- a/xml/templates/message_templates/event_online_receipt_html.tpl +++ b/xml/templates/message_templates/event_online_receipt_html.tpl @@ -279,14 +279,12 @@ {$taxDetail.amount|crmMoney:'{contribution.currency}'} {/foreach} - {/if} - {if $isShowTax && {contribution.tax_amount|boolean}} - {ts}Total Tax Amount{/ts} + {ts}Total Tax Amount{/ts} - {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} + {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} {/if} -- 2.25.1