From: demeritcowboy Date: Fri, 12 Jan 2024 18:51:14 +0000 (-0500) Subject: fix order of operations X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=80d10b22c712d0d82b736c42bf4a73d342fff3f3;p=civicrm-core.git fix order of operations --- diff --git a/templates/CRM/Price/Page/LineItem.tpl b/templates/CRM/Price/Page/LineItem.tpl index 8635cf9028..0d12b1bc0c 100644 --- a/templates/CRM/Price/Page/LineItem.tpl +++ b/templates/CRM/Price/Page/LineItem.tpl @@ -72,7 +72,7 @@ {/if} - {$line.line_total+$line.tax_amount|crmMoney:$currency} + {assign var=totalWithTax value=$line.line_total+$line.tax_amount}{$totalWithTax|crmMoney:$currency} {/if} {if $pricesetFieldsCount} {$line.participant_count} @@ -92,7 +92,7 @@ {ts}Contribution Total{/ts}: {elseif $context EQ "Event"} {if $totalTaxAmount} - {ts}Event SubTotal: {$totalAmount-$totalTaxAmount|crmMoney:$currency}{/ts}
+ {ts}Event SubTotal: {assign var=eventSubTotal value=$totalAmount-$totalTaxAmount}{$eventSubTotal|crmMoney:$currency}{/ts}
{/if} {ts}Total Amount{/ts}: {elseif $context EQ "Membership"}