CRM-16950 display tax rate on renewal form
authorBrian Shaughnessy <brian@lcdservices.biz>
Wed, 5 Aug 2015 00:59:43 +0000 (20:59 -0400)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 11 Aug 2015 13:33:12 +0000 (19:03 +0530)
CRM/Member/Form/MembershipRenewal.php
templates/CRM/Member/Form/MembershipRenewal.tpl

index 318125a22e2ecf742ad254e3544de352bafcb7fe..5a05c38bb8352bd0407fc36db6ca5dd4eb9a8352 100644 (file)
@@ -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
index edd6b5030872bea0fd1f5e3571e65304242425e5..487cf027f5989662c221605239f0a401431b8b6d 100644 (file)
                   <td>{$form.total_amount.html}<br/>
                     <span
                       class="description">{ts}Membership payment amount. A contribution record will be created for this amount.{/ts}</span>
+                    {if $taxAmount}
+                      <div class="totaltaxAmount">{ts 1=$taxTerm 2=$taxAmount}Includes %1 amount of $%2.{/ts}</div>
+                    {/if}
                   </td>
                 </tr>
                 <tr class="crm-membershiprenew-form-block-receive_date">
           <td>{$form.total_amount.html}<br/>
             <span
               class="description">{ts}Membership payment amount. A contribution record will be created for this amount.{/ts}</span>
+            {if $taxAmount}
+              <div class="totaltaxAmount">{ts 1=$taxTerm 2=$taxAmount}Includes %1 amount of %2.{/ts}</div>
+            {/if}
           </td>
         </tr>
       {/if}