From cf6758d1365f8bc4207b493e2020f249dbd7c105 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 3 Nov 2023 14:58:13 +1300 Subject: [PATCH] dev/financial#206 Switch templates to use token for tax_exclusive_amount --- .../message_templates/contribution_online_receipt_html.tpl | 2 +- .../message_templates/contribution_online_receipt_text.tpl | 2 +- .../message_templates/membership_online_receipt_html.tpl | 2 +- .../message_templates/membership_online_receipt_text.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/templates/message_templates/contribution_online_receipt_html.tpl b/xml/templates/message_templates/contribution_online_receipt_html.tpl index 8321861206..118a29f760 100644 --- a/xml/templates/message_templates/contribution_online_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_online_receipt_html.tpl @@ -85,7 +85,7 @@ {ts} Amount before Tax : {/ts} - {$amount-$totalTaxAmount|crmMoney:$currency} + {contribution.tax_exclusive_amount} diff --git a/xml/templates/message_templates/contribution_online_receipt_text.tpl b/xml/templates/message_templates/contribution_online_receipt_text.tpl index 2e4844feee..7aa6227925 100644 --- a/xml/templates/message_templates/contribution_online_receipt_text.tpl +++ b/xml/templates/message_templates/contribution_online_receipt_text.tpl @@ -33,7 +33,7 @@ {/foreach} {if $isShowTax && {contribution.tax_amount|boolean}} -{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency} +{ts}Amount before Tax:{/ts} {contribution.tax_exclusive_amount} {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} {if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:'{contribution.currency}'} {/foreach} diff --git a/xml/templates/message_templates/membership_online_receipt_html.tpl b/xml/templates/message_templates/membership_online_receipt_html.tpl index 6d1f2200dc..5ce49faf0b 100644 --- a/xml/templates/message_templates/membership_online_receipt_html.tpl +++ b/xml/templates/message_templates/membership_online_receipt_html.tpl @@ -211,7 +211,7 @@ {ts}Amount Before Tax:{/ts} - {$amount-$totalTaxAmount|crmMoney} + {contribution.tax_exclusive_amount} {foreach from=$dataArray item=value key=priceset} diff --git a/xml/templates/message_templates/membership_online_receipt_text.tpl b/xml/templates/message_templates/membership_online_receipt_text.tpl index b692a4fa8a..b6c4b78ecc 100644 --- a/xml/templates/message_templates/membership_online_receipt_text.tpl +++ b/xml/templates/message_templates/membership_online_receipt_text.tpl @@ -70,7 +70,7 @@ {/foreach} {if !empty($dataArray)} -{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency} +{ts}Amount before Tax:{/ts} {contribution.tax_exclusive_amount} {foreach from=$dataArray item=value key=priceset} {if $priceset || $priceset == 0} -- 2.25.1