Add start date back to recurring contributions display on contact
authorlarssandergreen <lars@wildsight.ca>
Thu, 13 Jul 2023 22:47:43 +0000 (16:47 -0600)
committerlarssandergreen <lars@wildsight.ca>
Thu, 13 Jul 2023 23:00:01 +0000 (17:00 -0600)
templates/CRM/Contribute/Page/ContributionRecurSelector.tpl
templates/CRM/Member/Page/RecurringContributions.tpl

index 2982db1ba892c2a74f64ece890057183b790faac..1a7f2d23824ebd644774caed3f2f6d3b127d74b7 100644 (file)
     <tr class="columnheader">
       <th scope="col">{ts}Amount{/ts}</th>
       <th scope="col">{ts}Frequency{/ts}</th>
-      <th scope="col">
-        {if $recurType EQ 'active'}{ts}Next Scheduled Date{/ts}
-        {elseif $recurType EQ 'inactive'}{ts}End or Modified Date{/ts}
-        {else}{ts}Start Date{/ts}
-        {/if}
-      </th>
+      <th scope="col">{ts}Start Date{/ts}</th>
+      {if $recurType EQ 'active'}<th scope="col">{ts}Next Scheduled Date{/ts}</th>{/if}
+      {if $recurType EQ 'inactive'}<th scope="col">{ts}End or Modified Date{/ts}</th>{/if}
       <th scope="col">{ts}Installments{/ts}</th>
       <th scope="col">{ts}Payment Processor{/ts}</th>
       <th scope="col">{ts}Status{/ts}</th>
       <tr id="contribution_recur-{$row.id}" data-action="cancel" class="crm-entity {cycle values="even-row,odd-row"}{if NOT $row.is_active} disabled{/if}">
         <td>{$row.amount|crmMoney:$row.currency}{if $row.is_test} ({ts}test{/ts}){/if}</td>
         <td>{ts}Every{/ts} {$row.frequency_interval} {$row.frequency_unit} </td>
-        <td>
-          {if $recurType EQ 'active'}{$row.next_sched_contribution_date|crmDate}
-          {elseif $recurType EQ 'inactive'}
+        <td>{$row.start_date|crmDate}</td>
+        {if $recurType EQ 'active'}<td>{$row.next_sched_contribution_date|crmDate}</td>{/if}
+        {if $recurType EQ 'inactive'}
+          <td>
             {if $row.cancel_date}{$row.cancel_date|crmDate}
             {elseif $row.end_date}{$row.end_date|crmDate}
             {else}{$row.modified_date|crmDate}
             {/if}
-          {else}{$row.start_date|crmDate}
-          {/if}
-        </td>
+          </td>
+        {/if}
         <td>{$row.installments}</td>
         <td>{$row.payment_processor}</td>
         <td>{$row.contribution_status}</td>
index 326eee90e3d5d600cf273c79b2a85bb4655e6696..02380e3ef9cb3151742298d7c455c06840dcb55b 100644 (file)
@@ -2,5 +2,5 @@
   <div class="solid-border-top">
     <br /><label>{ts 1=$displayName}Recurring Contributions{/ts}</label>
   </div>
-  {include file="CRM/Contribute/Page/ContributionRecurSelector.tpl" action=16}
+  {include file="CRM/Contribute/Page/ContributionRecurSelector.tpl" action=16 recurType='both'}
 {/if}