From 927ed88a3a5473f1f5481ed17dce7c3c1a7f55ce Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Tue, 4 Aug 2015 20:59:43 -0400 Subject: [PATCH] CRM-16950 display tax rate on renewal form --- CRM/Member/Form/MembershipRenewal.php | 1 + templates/CRM/Member/Form/MembershipRenewal.tpl | 6 ++++++ 2 files changed, 7 insertions(+) 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} -- 2.25.1