Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
8c9251b3 | 5 | | Copyright CiviCRM LLC (c) 2004-2018 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {*Table displays contribution totals for a contact or search result-set *} | |
9806f96d | 27 | {if $annual.count OR $contributionSummary.total.count OR $contributionSummary.cancel.count OR $contributionSummary.soft_credit.count} |
6a488035 | 28 | <table class="form-layout-compressed"> |
31037a42 | 29 | |
6a488035 TO |
30 | {if $annual.count} |
31 | <tr> | |
4c030d33 AH |
32 | <th class="contriTotalLeft right">{ts}Current Year-to-Date{/ts} – {$annual.amount}</th> |
33 | <th class="right"> {ts}# Completed Contributions{/ts} – {$annual.count}</th> | |
34 | <th class="right contriTotalRight"> {ts}Avg Amount{/ts} – {$annual.avg}</th> | |
6a488035 TO |
35 | {if $contributionSummary.cancel.amount} |
36 | <td> </td> | |
37 | {/if} | |
38 | </tr> | |
39 | {/if} | |
40 | ||
41 | {if $contributionSummary } | |
42 | <tr> | |
43 | {if $contributionSummary.total.amount} | |
d03881d3 | 44 | {if $contributionSummary.total.currencyCount gt 1} |
4c030d33 AH |
45 | <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount}</th> |
46 | <th class="left contriTotalRight"> {ts}# Completed{/ts} – {$contributionSummary.total.count}</th> | |
d03881d3 | 47 | </tr><tr> |
4c030d33 AH |
48 | <th class="contriTotalLeft">{ts}Avg{/ts} – {$contributionSummary.total.avg}</th> |
49 | <th class="right"> {ts}Median{/ts} – {$contributionSummary.total.median}</th> | |
50 | <th class="right contriTotalRight"> {ts}Mode{/ts} – {$contributionSummary.total.mode}</th> | |
d03881d3 | 51 | {else} |
4c030d33 AH |
52 | <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount}</th> |
53 | <th class="right"> {ts}# Completed{/ts} – {$contributionSummary.total.count}</th> | |
54 | <th class="right"> {ts}Avg{/ts} – {$contributionSummary.total.avg}</th> | |
55 | <th class="right"> {ts}Median{/ts} – {$contributionSummary.total.median}</th> | |
56 | <th class="right contriTotalRight"> {ts}Mode{/ts} – {$contributionSummary.total.mode}</th> | |
d03881d3 | 57 | {/if} |
6a488035 TO |
58 | {/if} |
59 | {if $contributionSummary.cancel.amount} | |
2137c2f9 | 60 | <th class="disabled right contriTotalRight"> {ts}Cancelled/Refunded{/ts} – {$contributionSummary.cancel.amount}</th> |
6a488035 | 61 | {/if} |
31037a42 | 62 | </tr> |
d4e2b978 DS |
63 | {if $contributionSummary.soft_credit.count} |
64 | <tr> | |
4c030d33 AH |
65 | <th class="contriTotalLeft right">{ts}Total Soft Credit Amount{/ts} – {$contributionSummary.soft_credit.amount}</th> |
66 | <th class="right"> {ts}# Completed Soft Credits{/ts} – {$contributionSummary.soft_credit.count}</th> | |
67 | <th class="right contriTotalRight"> {ts}Avg Soft Credit Amount{/ts} – {$contributionSummary.soft_credit.avg}</th> | |
31037a42 | 68 | </tr> |
d4e2b978 | 69 | {/if} |
6a488035 | 70 | {/if} |
31037a42 | 71 | |
6a488035 | 72 | </table> |
232624b1 | 73 | {/if} |