From c6ee9b393f50e81c4f07d4387608b0b2f514bf9b Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 30 Mar 2021 13:33:38 +1300 Subject: [PATCH] Stop passing html to crmMoney --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 2 +- templates/CRM/Contribute/Form/ManagePremiums.tpl | 6 +++--- templates/CRM/Event/Form/EventFees.tpl | 2 +- templates/CRM/Event/Form/ManageEvent/Fee.tpl | 4 ++-- templates/CRM/Pledge/Form/Pledge.tpl | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 0e5a3c2c61..1a8d218053 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -96,7 +96,7 @@ {else}
{$form.total_amount.label} - {$form.total_amount.html|crmMoney}  {if $taxAmount}{ts 1=$taxTerm 2=$taxAmount|crmMoney}(includes %1 of %2){/ts}{/if} + {$form.total_amount.html}  {if $taxAmount}{ts 1=$taxTerm 2=$taxAmount|crmMoney}(includes %1 of %2){/ts}{/if}
{/if} {else} diff --git a/templates/CRM/Contribute/Form/ManagePremiums.tpl b/templates/CRM/Contribute/Form/ManagePremiums.tpl index c688678b93..7e3f88661b 100644 --- a/templates/CRM/Contribute/Form/ManagePremiums.tpl +++ b/templates/CRM/Contribute/Form/ManagePremiums.tpl @@ -64,19 +64,19 @@ {$form.min_contribution.label} - {$form.min_contribution.html|crmMoney}
+ {$form.min_contribution.html}
{ts}The minimum contribution amount required to be eligible to select this premium. If you want to offer it to all contributors regardless of contribution amount, enter '0'. If display of minimum contribution amounts is enabled then this text is displayed:{/ts} {ts}(Contribute at least X to be eligible for this gift.){/ts} {$form.price.label} - {$form.price.html|crmMoney}
+ {$form.price.html}
{ts}The market value of this premium (e.g. retail price). For tax-deductible contributions, this amount will be used to set the non-deductible amount in the contribution record and receipt.{/ts} {$form.cost.label} - {$form.cost.html|crmMoney}
+ {$form.cost.html}
{ts}You may optionally record the actual cost of this premium to your organization. This may be useful when evaluating net return for this incentive.{/ts} diff --git a/templates/CRM/Event/Form/EventFees.tpl b/templates/CRM/Event/Form/EventFees.tpl index 355e821caa..e6c5ef4ab4 100644 --- a/templates/CRM/Event/Form/EventFees.tpl +++ b/templates/CRM/Event/Form/EventFees.tpl @@ -68,7 +68,7 @@ {$form.financial_type_id.label} * {$form.financial_type_id.html}
{ts}Select the appropriate financial type for this payment.{/ts} - {$form.total_amount.label}{$form.total_amount.html|crmMoney:$currency} + {$form.total_amount.label}{$form.total_amount.html} {$form.receive_date.label} {$form.receive_date.html} diff --git a/templates/CRM/Event/Form/ManageEvent/Fee.tpl b/templates/CRM/Event/Form/ManageEvent/Fee.tpl index e397febb8c..45abb521a6 100644 --- a/templates/CRM/Event/Form/ManageEvent/Fee.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Fee.tpl @@ -146,7 +146,7 @@ {ts}Fee Label{/ts}{ts}Amount{/ts}{ts}Default?{/ts}
{$form.default.0.html} {section name=loop start=1 loop=11} {assign var=idx value=$smarty.section.loop.index} - {$form.label.$idx.html}{$form.value.$idx.html|crmMoney}{$form.default.$idx.html} + {$form.label.$idx.html}{$form.value.$idx.html}{$form.default.$idx.html} {/section} @@ -208,7 +208,7 @@ {section name=loop1 start=1 loop=6} {assign var=idy value=$smarty.section.loop1.index} {if $form.discount_name.$idy.value} - {$form.discounted_value.$idx.$idy.html|crmMoney} + {$form.discounted_value.$idx.$idy.html} {/if} {/section} {$form.discounted_default.$idx.html} diff --git a/templates/CRM/Pledge/Form/Pledge.tpl b/templates/CRM/Pledge/Form/Pledge.tpl index fa6afe6e6c..09ba2bca48 100644 --- a/templates/CRM/Pledge/Form/Pledge.tpl +++ b/templates/CRM/Pledge/Form/Pledge.tpl @@ -51,7 +51,7 @@ {$form.installments.html} {ts}installments of{/ts} {if $action eq 1 or $isPending} - {$form.eachPaymentAmount.html|crmMoney:$currency} + {$form.eachPaymentAmount.html} {elseif $action eq 2 and !$isPending} {$eachPaymentAmount|crmMoney:$currency} {/if} -- 2.25.1