$summary['total']['amount'][] = CRM_Utils_Money::format($dao->total_amount, $dao->currency);
$summary['total']['avg'][] = CRM_Utils_Money::format($dao->total_avg, $dao->currency);
}
- $summary['total']['currencyCount'] = count($summary['total']['amount']);
+
if (!empty($summary['total']['amount'])) {
$summary['total']['amount'] = implode(', ', $summary['total']['amount']);
$summary['total']['avg'] = implode(', ', $summary['total']['avg']);
{if $contributionSummary }
<tr>
{if $contributionSummary.total.amount}
- {if $contributionSummary.total.currencyCount gt 1}
- <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount}</th>
- <th class="left contriTotalRight"> {ts}# Completed{/ts} – {$contributionSummary.total.count}</th>
- </tr><tr>
- <th class="contriTotalLeft">{ts}Avg{/ts} – {$contributionSummary.total.avg}</th>
- {else}
- <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount}</th>
- <th class="right"> {ts}# Completed{/ts} – {$contributionSummary.total.count}</th>
- <th class="right contriTotalRight"> {ts}Avg{/ts} – {$contributionSummary.total.avg}</th>
- {/if}
+ <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount}</th>
+ <th class="right"> {ts}# Completed{/ts} – {$contributionSummary.total.count}</th>
+ <th class="right contriTotalRight"> {ts}Avg{/ts} – {$contributionSummary.total.avg}</th>
{/if}
{if $contributionSummary.cancel.amount}
<th class="disabled right contriTotalRight"> {ts}Cancelled/Refunded{/ts} – {$contributionSummary.cancel.amount}</th>