fix order of operations
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 12 Jan 2024 18:51:14 +0000 (13:51 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 12 Jan 2024 20:00:27 +0000 (15:00 -0500)
templates/CRM/Price/Page/LineItem.tpl

index 8635cf90288d0938c4f92f5f056068f5e59b4e94..0d12b1bc0c3d440316b03bb52db8dbd62080a6c4 100644 (file)
@@ -72,7 +72,7 @@
         <td></td>
         <td></td>
       {/if}
-      <td class="right">{$line.line_total+$line.tax_amount|crmMoney:$currency}</td>
+      <td class="right">{assign var=totalWithTax value=$line.line_total+$line.tax_amount}{$totalWithTax|crmMoney:$currency}</td>
     {/if}
           {if $pricesetFieldsCount}
             <td class="right">{$line.participant_count}</td>
@@ -92,7 +92,7 @@
       {ts}Contribution Total{/ts}:
     {elseif $context EQ "Event"}
       {if $totalTaxAmount}
-        {ts}Event SubTotal: {$totalAmount-$totalTaxAmount|crmMoney:$currency}{/ts}<br />
+        {ts}Event SubTotal: {assign var=eventSubTotal value=$totalAmount-$totalTaxAmount}{$eventSubTotal|crmMoney:$currency}{/ts}<br />
       {/if}
       {ts}Total Amount{/ts}:
     {elseif $context EQ "Membership"}