From: Brian Shaughnessy Date: Wed, 5 Aug 2015 00:59:43 +0000 (-0400) Subject: CRM-16950 display tax rate on renewal form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=927ed88a3a5473f1f5481ed17dce7c3c1a7f55ce;p=civicrm-core.git CRM-16950 display tax rate on renewal form --- diff --git a/CRM/Member/Form/MembershipRenewal.php b/CRM/Member/Form/MembershipRenewal.php index 318125a22e..5a05c38bb8 100644 --- a/CRM/Member/Form/MembershipRenewal.php +++ b/CRM/Member/Form/MembershipRenewal.php @@ -305,6 +305,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { $taxAmount = ($taxRate/100) * CRM_Utils_Array::value('minimum_fee', $values); $totalAmount = $totalAmount + $taxAmount; $allMembershipInfo[$key]['tax_amount'] = $taxAmount; + $this->assign('taxAmount', $taxAmount); } // build membership info array, which is used to set the payment information block when diff --git a/templates/CRM/Member/Form/MembershipRenewal.tpl b/templates/CRM/Member/Form/MembershipRenewal.tpl index edd6b50308..487cf027f5 100644 --- a/templates/CRM/Member/Form/MembershipRenewal.tpl +++ b/templates/CRM/Member/Form/MembershipRenewal.tpl @@ -165,6 +165,9 @@ {$form.total_amount.html}
{ts}Membership payment amount. A contribution record will be created for this amount.{/ts} + {if $taxAmount} +
{ts 1=$taxTerm 2=$taxAmount}Includes %1 amount of $%2.{/ts}
+ {/if} @@ -197,6 +200,9 @@ {$form.total_amount.html}
{ts}Membership payment amount. A contribution record will be created for this amount.{/ts} + {if $taxAmount} +
{ts 1=$taxTerm 2=$taxAmount}Includes %1 amount of %2.{/ts}
+ {/if} {/if}