From c6e1b1d364876fc8a4fda6eb57253dc215689fbb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 22 Jun 2023 09:10:56 -0700 Subject: [PATCH] Switch to token for tax_exclusive_amount in offline receipt This is less susceptible to notices, works in preview and follows our patter of using tokens where possible --- .../message_templates/contribution_offline_receipt_html.tpl | 2 +- .../message_templates/contribution_offline_receipt_text.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/templates/message_templates/contribution_offline_receipt_html.tpl b/xml/templates/message_templates/contribution_offline_receipt_html.tpl index f401782dc1..23b861c722 100644 --- a/xml/templates/message_templates/contribution_offline_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_offline_receipt_html.tpl @@ -113,7 +113,7 @@ {ts} Amount before Tax : {/ts} - {$formValues.total_amount-$totalTaxAmount|crmMoney:'{contribution.currency}'} + {contribution.tax_exclusive_amount} diff --git a/xml/templates/message_templates/contribution_offline_receipt_text.tpl b/xml/templates/message_templates/contribution_offline_receipt_text.tpl index e5692d0642..1698251249 100644 --- a/xml/templates/message_templates/contribution_offline_receipt_text.tpl +++ b/xml/templates/message_templates/contribution_offline_receipt_text.tpl @@ -32,7 +32,7 @@ {if $isShowTax && {contribution.tax_amount|boolean}} -{ts}Amount before Tax{/ts} : {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} +{ts}Amount before Tax{/ts} : {contribution.tax_exclusive_amount} {/if} {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} {if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:'{contribution.currency}'} -- 2.25.1