{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* Displays contribution/event fees when price set is used. *} {foreach from=$lineItem item=value key=priceset} {if $value neq 'skip'} {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} {if $priceset GT 0}
{/if} {ts}Participant {$priceset+1}{/ts} {$part.$priceset.info} {/if} {if $context EQ "Membership"} {else} {/if} {if $pricesetFieldsCount} {/if} {foreach from=$value item=line} {if $context NEQ "Membership"} {/if} {if $pricesetFieldsCount} {/if} {/foreach}
{ts}Item{/ts}{ts}Fee{/ts}{ts}Qty{/ts} {ts}Unit Price{/ts} {ts}Total Price{/ts}{ts}Total Participants{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description}
{/if}
{$line.qty} {$line.unit_price|crmMoney}{$line.line_total|crmMoney}{$line.participant_count}
{/if} {/foreach}
{if $context EQ "Contribution"} {ts}Contribution Total{/ts}: {elseif $context EQ "Event"} {ts}Event Total{/ts}: {elseif $context EQ "Membership"} {ts}Membership Fee Total{/ts}: {else} {ts}Total Amount{/ts}: {/if} {$totalAmount|crmMoney}
{if $pricesetFieldsCount} {ts}Total Participants{/ts}: {foreach from=$lineItem item=pcount} {if $pcount neq 'skip'} {assign var="lineItemCount" value=0} {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} {if $lineItemCount < 1 } {assign var="lineItemCount" value=1} {/if} {assign var="totalcount" value=$totalcount+$lineItemCount} {/if} {/foreach} {$totalcount} {/if}
{if $hookDiscount.message}
({$hookDiscount.message})
{/if} {literal} {/literal}